[llvm-commits] CVS: llvm/test/Regression/CFrontend/2005-10-18-VariableSizedElementCrash.c

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 18 17:52:33 PDT 2005



Changes in directory llvm/test/Regression/CFrontend:

2005-10-18-VariableSizedElementCrash.c added (r1.1)
---
Log message:

Testcase that crashes llvmgcc in type layout


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

 2005-10-18-VariableSizedElementCrash.c |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/test/Regression/CFrontend/2005-10-18-VariableSizedElementCrash.c
diff -c /dev/null llvm/test/Regression/CFrontend/2005-10-18-VariableSizedElementCrash.c:1.1
*** /dev/null	Tue Oct 18 19:52:32 2005
--- llvm/test/Regression/CFrontend/2005-10-18-VariableSizedElementCrash.c	Tue Oct 18 19:52:22 2005
***************
*** 0 ****
--- 1,9 ----
+ // RUN: %llvmgcc %s -S -o -
+ // XFAIL: *
+ int sub1(int i, char *pi) {
+   typedef int foo[i];
+   struct bar {foo f1; int f2:3; int f3:4} *p = (struct bar *) pi;
+   xxx(p->f1);  
+   return p->f3;
+ }
+ 






More information about the llvm-commits mailing list