diff options
Diffstat (limited to 'tests/headers/union_template_1_0.hpp')
-rw-r--r-- | tests/headers/union_template_1_0.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/headers/union_template_1_0.hpp b/tests/headers/union_template_1_0.hpp new file mode 100644 index 00000000..53df1175 --- /dev/null +++ b/tests/headers/union_template_1_0.hpp @@ -0,0 +1,21 @@ +// bindgen-flags: --rust-target 1.0 + +template<typename T> +struct NastyStruct { + bool mIsSome; + union { + void* mFoo; + unsigned long mDummy; + } mStorage; + + union { + short wat; + int* wut; + }; +}; + +template<typename T> +union Whatever { + void* mTPtr; + int mInt; +}; |