[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2003-09-18-BitFieldTest.c

Chris Lattner lattner at cs.uiuc.edu
Thu Sep 18 15:28:02 PDT 2003


Changes in directory llvm/test/Programs/SingleSource/UnitTests:

2003-09-18-BitFieldTest.c added (r1.1)

---
Log message:

New testcase, which the CFE botches


---
Diffs of the changes:

Index: llvm/test/Programs/SingleSource/UnitTests/2003-09-18-BitFieldTest.c
diff -c /dev/null llvm/test/Programs/SingleSource/UnitTests/2003-09-18-BitFieldTest.c:1.1
*** /dev/null	Thu Sep 18 15:27:19 2003
--- llvm/test/Programs/SingleSource/UnitTests/2003-09-18-BitFieldTest.c	Thu Sep 18 15:27:08 2003
***************
*** 0 ****
--- 1,20 ----
+ #include <stdio.h>
+ 
+ struct rtx_def {
+   unsigned int jump : 1;
+   unsigned int call : 1;
+ };
+ 
+ void i2(struct rtx_def *d) {
+   d->jump = 0;
+ }
+ 
+ int main() {
+   struct rtx_def D;
+   D.call = 1;
+   i2(&D);
+   printf("%d %d\n", D.jump, D.call);
+   return 0;
+ }
+ 
+ 





More information about the llvm-commits mailing list