[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-03-07-ExternalConstant.c.tr

Chris Lattner lattner at cs.uiuc.edu
Sun Mar 7 20:30:06 PST 2004


Changes in directory llvm/test/Regression/CFrontend:

2004-03-07-ExternalConstant.c.tr added (r1.1)

---
Log message:

New code-quality testcase.


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

Index: llvm/test/Regression/CFrontend/2004-03-07-ExternalConstant.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-03-07-ExternalConstant.c.tr:1.1
*** /dev/null	Sun Mar  7 20:12:46 2004
--- llvm/test/Regression/CFrontend/2004-03-07-ExternalConstant.c.tr	Sun Mar  7 20:12:36 2004
***************
*** 0 ****
--- 1,7 ----
+ // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep constant
+ 
+ extern const int a[];   // 'a' should be marked constant even though it's external!
+ int foo () {
+   return a[0];
+ }
+ 





More information about the llvm-commits mailing list