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