[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed May 14 16:09:03 PDT 2003


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

2003-05-14-array-init.cpp added (r1.1)

---
Log message:

New testcase that breaks CFE


---
Diffs of the changes:

Index: llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp:1.1
*** /dev/null	Wed May 14 16:08:14 2003
--- llvm/test/Regression/C++Frontend/2003-05-14-array-init.cpp	Wed May 14 16:08:04 2003
***************
*** 0 ****
--- 1,10 ----
+ #include <stdio.h>
+ 
+ extern int table[];
+ 
+ int main() {
+   printf("%d %d %d %d\n", table[0], table[1], table[2], table[3]);
+   return table[1];
+ }
+ 
+ int table[] = { 1, 0, 3, 4 };





More information about the llvm-commits mailing list