diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-06-21 13:47:34 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-06-21 15:20:55 +0200 |
commit | 14a8d29baa1da364c6f33de42c4048ed573b06ed (patch) | |
tree | 9fc79c4315b457f0e5f069837def986f6a2ea469 /tests/headers | |
parent | b60339ece3994868a55889b7f1f6043ab29ba30e (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.h | 9 |
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) |