[llvm-commits] CVS: llvm/test/Programs/SingleSource/UnitTests/2004-06-20-StaticBitfieldInit.c

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 20 13:50:43 PDT 2004


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

2004-06-20-StaticBitfieldInit.c added (r1.1)

---
Log message:

New self contained testcase for PR377: http://llvm.cs.uiuc.edu/PR377 


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

Index: llvm/test/Programs/SingleSource/UnitTests/2004-06-20-StaticBitfieldInit.c
diff -c /dev/null llvm/test/Programs/SingleSource/UnitTests/2004-06-20-StaticBitfieldInit.c:1.1
*** /dev/null	Sun Jun 20 13:31:29 2004
--- llvm/test/Programs/SingleSource/UnitTests/2004-06-20-StaticBitfieldInit.c	Sun Jun 20 13:31:19 2004
***************
*** 0 ****
--- 1,13 ----
+ #include <stdio.h>
+ 
+ struct T {
+   unsigned X : 5;
+   unsigned Y : 6;
+   unsigned Z : 5;
+ };
+ 
+ struct T GV = { 1, 5, 1 };
+ 
+ int main() {
+   printf("%d %d %d\n", GV.X, GV.Y, GV.Z);
+ }





More information about the llvm-commits mailing list