[llvm-commits] CVS: llvm/test/Regression/CFrontend/2006-10-30-ArrayCrash.c

Chris Lattner sabre at nondot.org
Mon Oct 30 22:25:27 PST 2006



Changes in directory llvm/test/Regression/CFrontend:

2006-10-30-ArrayCrash.c added (r1.1)
---
Log message:

new testcase


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

 2006-10-30-ArrayCrash.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+)


Index: llvm/test/Regression/CFrontend/2006-10-30-ArrayCrash.c
diff -c /dev/null llvm/test/Regression/CFrontend/2006-10-30-ArrayCrash.c:1.1
*** /dev/null	Tue Oct 31 00:25:23 2006
--- llvm/test/Regression/CFrontend/2006-10-30-ArrayCrash.c	Tue Oct 31 00:25:13 2006
***************
*** 0 ****
--- 1,16 ----
+ // RUN: %llvmgcc -O3 -S -o - %s
+ 
+ extern void foo();
+ 
+ struct S {
+   short        f1[3];
+   unsigned int f2 : 1;
+ };
+ 
+ void bar()
+ {
+   struct S *A;
+ 
+   if (A->f2)
+     foo();
+ }






More information about the llvm-commits mailing list