summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-12 05:01:48 +0000
committerChris Lattner <sabre@nondot.org>2004-01-12 05:01:48 +0000
commit20cd43b2f6a03abf46282653b774046c80c02cf5 (patch)
treeeddcb15aff2623845f278301dc1a3715e19769ce /test
parente845b1aa798f5599f4b42959b234d68c556c9fe4 (diff)
downloadllvm-20cd43b2f6a03abf46282653b774046c80c02cf5.tar.gz
llvm-20cd43b2f6a03abf46282653b774046c80c02cf5.tar.bz2
llvm-20cd43b2f6a03abf46282653b774046c80c02cf5.tar.xz
Testcase for PR204
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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; }
+