summaryrefslogtreecommitdiff
path: root/tests/headers/union_with_nesting_1_0.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/union_with_nesting_1_0.h')
-rw-r--r--tests/headers/union_with_nesting_1_0.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/headers/union_with_nesting_1_0.h b/tests/headers/union_with_nesting_1_0.h
new file mode 100644
index 00000000..bfd59635
--- /dev/null
+++ b/tests/headers/union_with_nesting_1_0.h
@@ -0,0 +1,16 @@
+// bindgen-flags: --rust-target 1.0 --with-derive-hash
+
+union foo {
+ unsigned int a;
+ struct {
+ union {
+ unsigned short b1;
+ unsigned short b2;
+ };
+
+ union {
+ unsigned short c1;
+ unsigned short c2;
+ };
+ };
+};