summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/union_with_anon_struct_bitfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/tests/headers/union_with_anon_struct_bitfield.h')
-rw-r--r--libbindgen/tests/headers/union_with_anon_struct_bitfield.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/union_with_anon_struct_bitfield.h b/libbindgen/tests/headers/union_with_anon_struct_bitfield.h
new file mode 100644
index 00000000..24c7dce8
--- /dev/null
+++ b/libbindgen/tests/headers/union_with_anon_struct_bitfield.h
@@ -0,0 +1,8 @@
+// bindgen-flags: --no-unstable-rust
+union foo {
+ int a;
+ struct {
+ int b : 7;
+ int c : 25;
+ };
+};