From 20cd43b2f6a03abf46282653b774046c80c02cf5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jan 2004 05:01:48 +0000 Subject: [PATCH] Testcase for PR204 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10769 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2004-01-11-DynamicInitializedConstant.cpp.tr | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr 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 00000000000..03fead23f2f --- /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; } + -- 2.34.1