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