[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-05-22-VarSizeArray.c
Chris Lattner
lattner at cs.uiuc.edu
Thu May 22 15:44:05 PDT 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-05-22-VarSizeArray.c added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/C++Frontend/2003-05-22-VarSizeArray.c
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-05-22-VarSizeArray.c:1.1
*** /dev/null Thu May 22 15:43:16 2003
--- llvm/test/Regression/C++Frontend/2003-05-22-VarSizeArray.c Thu May 22 15:43:06 2003
***************
*** 0 ****
--- 1,11 ----
+
+ int test(int Num) {
+ int Arr[Num];
+ Arr[2] = 0;
+ return Arr[2];
+ }
+
+ int main() {
+ printf("%d\n", test(4));
+ return 0;
+ }
More information about the llvm-commits
mailing list