summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/union_with_anon_struct_bitfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/union_with_anon_struct_bitfield.h')
-rw-r--r--bindgen-tests/tests/headers/union_with_anon_struct_bitfield.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/union_with_anon_struct_bitfield.h b/bindgen-tests/tests/headers/union_with_anon_struct_bitfield.h
new file mode 100644
index 00000000..bbb1ef41
--- /dev/null
+++ b/bindgen-tests/tests/headers/union_with_anon_struct_bitfield.h
@@ -0,0 +1,9 @@
+// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
+//
+union foo {
+ int a;
+ struct {
+ int b : 7;
+ int c : 25;
+ };
+};