[llvm-commits] CVS: llvm/test/CFrontend/2007-03-27-ArrayCompatible.c
Duncan Sands
baldrick at free.fr
Mon Apr 16 14:12:24 PDT 2007
Changes in directory llvm/test/CFrontend:
2007-03-27-ArrayCompatible.c added (r1.1)
---
Log message:
Check handling of arrays of variable sized components.
---
Diffs of the changes: (+10 -0)
2007-03-27-ArrayCompatible.c | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/test/CFrontend/2007-03-27-ArrayCompatible.c
diff -c /dev/null llvm/test/CFrontend/2007-03-27-ArrayCompatible.c:1.1
*** /dev/null Mon Apr 16 16:12:13 2007
--- llvm/test/CFrontend/2007-03-27-ArrayCompatible.c Mon Apr 16 16:12:03 2007
***************
*** 0 ****
--- 1,10 ----
+ // RUN: %llvmgcc -S %s -O2 -o - | grep {ret i8 0}
+ static char c(int n) {
+ char x[2][n];
+ x[1][0]=0;
+ return *(n+(char *)x);
+ }
+
+ char d(void) {
+ return c(2);
+ }
More information about the llvm-commits
mailing list