summaryrefslogtreecommitdiff
path: root/tests/headers/packed-bitfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/packed-bitfield.h')
-rw-r--r--tests/headers/packed-bitfield.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/headers/packed-bitfield.h b/tests/headers/packed-bitfield.h
new file mode 100644
index 00000000..ef23bc6a
--- /dev/null
+++ b/tests/headers/packed-bitfield.h
@@ -0,0 +1,5 @@
+struct Date {
+ unsigned char day: 5;
+ unsigned char month: 4;
+ signed short year: 15;
+} __attribute__((packed));