diff options
Diffstat (limited to 'bindgen-tests/tests/headers/union_with_nesting.h')
-rw-r--r-- | bindgen-tests/tests/headers/union_with_nesting.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/union_with_nesting.h b/bindgen-tests/tests/headers/union_with_nesting.h new file mode 100644 index 00000000..ae25244a --- /dev/null +++ b/bindgen-tests/tests/headers/union_with_nesting.h @@ -0,0 +1,16 @@ +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq +// +union foo { + unsigned int a; + struct { + union { + unsigned short b1; + unsigned short b2; + }; + + union { + unsigned short c1; + unsigned short c2; + }; + }; +}; |