diff options
Diffstat (limited to 'llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr')
-rw-r--r-- | llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr | 6 |
1 files changed, 6 insertions, 0 deletions
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; } + |