summaryrefslogtreecommitdiff
path: root/tests/headers
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2021-06-21 13:47:34 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-06-21 15:20:55 +0200
commit14a8d29baa1da364c6f33de42c4048ed573b06ed (patch)
tree9fc79c4315b457f0e5f069837def986f6a2ea469 /tests/headers
parentb60339ece3994868a55889b7f1f6043ab29ba30e (diff)
comp: Do a better effort of computing packedness before bitfield units.
Fixes #2067
Diffstat (limited to 'tests/headers')
-rw-r--r--tests/headers/bitfield_pragma_packed.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/headers/bitfield_pragma_packed.h b/tests/headers/bitfield_pragma_packed.h
new file mode 100644
index 00000000..b4011ca8
--- /dev/null
+++ b/tests/headers/bitfield_pragma_packed.h
@@ -0,0 +1,9 @@
+#pragma pack(push, 1)
+struct Struct {
+ unsigned char a : 1;
+ unsigned char b : 1;
+ unsigned char c : 6;
+ unsigned short int d : 16;
+ unsigned char e : 8;
+};
+#pragma pack(pop)