fehler127: WTF - autobreak expects this to compile.
[libfirm] / ir / be / test / bitfield.c
index 93d1d89..8900028 100644 (file)
@@ -1,14 +1,21 @@
+#include <stdio.h>
+
+struct a {
+       unsigned int i:1;
+};
+
 struct b {
   int x:20;
   int y:8;
   int z:10;
 };
 
-struct b B = { 1, 2, 3 };
-struct b C = { 1, 2, 3 };
+struct b B = { -1, 2, 3 };
+struct b C = { -1, 2, 3 };
 
 int main()
 {
+  printf("sizeof(struct a) = %zu\n", sizeof(struct a));
   printf("sizeof(B) = %d\n", sizeof(B));
 
   printf("x = %d\n", B.x);