odds and sods
[tridge/junkcode.git] / int32.c
diff --git a/int32.c b/int32.c
new file mode 100644 (file)
index 0000000..fb6b1e3
--- /dev/null
+++ b/int32.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+typedef struct {
+       unsigned val:32;
+} uint32;
+
+int main(void)
+{
+       uint32 x;
+       x = 5;
+       printf("sizeof(x)=%d\n", sizeof(x));
+       return 0;
+}