From e0536857aa99edac505e7a8a389d9e3c0ffbbaf6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Jan 2004 05:01:48 +0000 Subject: Testcase for PR204 llvm-svn: 10769 --- .../C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr (limited to 'llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr') 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 00000000000..03fead23f2f --- /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; } + -- cgit v1.2.3