aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr b/test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr
new file mode 100644
index 0000000000..03fead23f2
--- /dev/null
+++ b/test/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; }
+