[llvm-commits] CVS: llvm/test/CFrontend/2007-03-27-VarLengthArray.c
    Duncan Sands 
    baldrick at free.fr
       
    Mon Apr 16 14:14:18 PDT 2007
    
    
  
Changes in directory llvm/test/CFrontend:
2007-03-27-VarLengthArray.c added (r1.1)
---
Log message:
Test code quality for variable length array references.
---
Diffs of the changes:  (+7 -0)
 2007-03-27-VarLengthArray.c |    7 +++++++
 1 files changed, 7 insertions(+)
Index: llvm/test/CFrontend/2007-03-27-VarLengthArray.c
diff -c /dev/null llvm/test/CFrontend/2007-03-27-VarLengthArray.c:1.1
*** /dev/null	Mon Apr 16 16:14:07 2007
--- llvm/test/CFrontend/2007-03-27-VarLengthArray.c	Mon Apr 16 16:13:57 2007
***************
*** 0 ****
--- 1,7 ----
+ // RUN: %llvmgcc -S %s -o - | grep {getelementptr i32}
+ extern void f(int *);
+ int e(int m, int n) {
+   int x[n];
+   f(x);
+   return x[m];
+ }
    
    
More information about the llvm-commits
mailing list