From b9b468b897c970db6f7008f1ff81518a3c6966f7 Mon Sep 17 00:00:00 2001 From: Edward Barnard Date: Thu, 1 Jan 2015 15:59:43 +0000 Subject: Structs containing bitfields are now the correct size and bitfield accessors can be written by hand if required. --- tests/headers/struct_with_bitfields.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/headers/struct_with_bitfields.h (limited to 'tests/headers/struct_with_bitfields.h') diff --git a/tests/headers/struct_with_bitfields.h b/tests/headers/struct_with_bitfields.h new file mode 100644 index 00000000..ece512cd --- /dev/null +++ b/tests/headers/struct_with_bitfields.h @@ -0,0 +1,12 @@ +struct bitfield { + unsigned short + a :1, + b :1, + c :1, + :1, + :2, + d :2; + int e; + unsigned int f : 2; + unsigned int g : 32; +}; -- cgit v1.2.3