Testcase for PR204

llvm-svn: 10769
diff --git a/llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr b/llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr
new file mode 100644
index 0000000..03fead2
--- /dev/null
+++ b/llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr
@@ -0,0 +1,6 @@
+// RUN: %llvmgcc -xc++ -S -o - %s | not grep ' constant '
+
+extern int X;
+const int Y = X;
+const int* foo() { return &Y; }
+