fixed lots of warnings in testprograms
[libfirm] / ir / be / test / bitfield.c
index cb11bb0..d92d0ca 100644 (file)
@@ -1,3 +1,9 @@
+#include <stdio.h>
+
+struct a {
+       unsigned int i:1;
+};
+
 struct b {
   int x:20;
   int y:8;
@@ -9,6 +15,7 @@ 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);
@@ -18,7 +25,7 @@ int main()
   B.y = C.z;
 
   if (C.z)
-    return 3;
+    return 0;
 
-       return 0;
+  return 42;
 }