[llvm-commits] CVS: llvm/test/Regression/CFrontend/2003-08-29-BitFieldStruct.c

Misha Brukman brukman at cs.uiuc.edu
Fri Aug 29 16:51:01 PDT 2003


Changes in directory llvm/test/Regression/CFrontend:

2003-08-29-BitFieldStruct.c added (r1.1)

---
Log message:

Test case distilled from sed.


---
Diffs of the changes:

Index: llvm/test/Regression/CFrontend/2003-08-29-BitFieldStruct.c
diff -c /dev/null llvm/test/Regression/CFrontend/2003-08-29-BitFieldStruct.c:1.1
*** /dev/null	Fri Aug 29 16:50:01 2003
--- llvm/test/Regression/CFrontend/2003-08-29-BitFieldStruct.c	Fri Aug 29 16:49:51 2003
***************
*** 0 ****
--- 1,14 ----
+ typedef enum { FALSE, TRUE } flagT;
+ 
+ struct Word
+ {
+   short bar;
+   short baz;
+   flagT final:1;
+   short quux;
+ } *word_limit;
+ 
+ void foo ()
+ {
+   word_limit->final = (word_limit->final && word_limit->final);
+ }





More information about the llvm-commits mailing list