summaryrefslogtreecommitdiff
path: root/tests/headers/issue-739-pointer-wide-bitfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/issue-739-pointer-wide-bitfield.h')
-rw-r--r--tests/headers/issue-739-pointer-wide-bitfield.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/issue-739-pointer-wide-bitfield.h b/tests/headers/issue-739-pointer-wide-bitfield.h
new file mode 100644
index 00000000..611dab1d
--- /dev/null
+++ b/tests/headers/issue-739-pointer-wide-bitfield.h
@@ -0,0 +1,8 @@
+#define POINTER_WIDTH (sizeof(void*) * 8)
+
+struct Foo {
+ unsigned long m_bitfield: POINTER_WIDTH;
+ unsigned long m_bar: POINTER_WIDTH;
+ unsigned long foo: 1;
+ unsigned long bar: POINTER_WIDTH;
+};