[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 11 23:02:01 PST 2004


Changes in directory llvm/test/Regression/C++Frontend:

2004-01-11-DynamicInitializedConstant.cpp.tr added (r1.1)

---
Log message:

Testcase for PR204


---
Diffs of the changes:  (+6 -0)

Index: llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr
diff -c /dev/null llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr:1.1
*** /dev/null	Sun Jan 11 23:01:58 2004
--- llvm/test/Regression/C++Frontend/2004-01-11-DynamicInitializedConstant.cpp.tr	Sun Jan 11 23:01:48 2004
***************
*** 0 ****
--- 1,6 ----
+ // RUN: %llvmgcc -xc++ -S -o - %s | not grep ' constant '
+ 
+ extern int X;
+ const int Y = X;
+ const int* foo() { return &Y; }
+ 





More information about the llvm-commits mailing list