diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tests2/82_attribs_position.c | 14 | ||||
| -rw-r--r-- | tests/tests2/82_attribs_position.expect | 0 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/tests2/82_attribs_position.c b/tests/tests2/82_attribs_position.c new file mode 100644 index 0000000..45039b3 --- /dev/null +++ b/tests/tests2/82_attribs_position.c @@ -0,0 +1,14 @@ +typedef unsigned short uint16_t; +typedef unsigned char uint8_t; + +typedef union Unaligned16a { + uint16_t u; + uint8_t b[2]; +} __attribute__((packed)) Unaligned16a; + +typedef union __attribute__((packed)) Unaligned16b { + uint16_t u; + uint8_t b[2]; +} Unaligned16b; + +int main () { return 0; } diff --git a/tests/tests2/82_attribs_position.expect b/tests/tests2/82_attribs_position.expect new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/tests2/82_attribs_position.expect |
