summaryrefslogtreecommitdiff
path: root/tests/headers/union_template.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/union_template.hpp')
-rw-r--r--tests/headers/union_template.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/headers/union_template.hpp b/tests/headers/union_template.hpp
new file mode 100644
index 00000000..0d0a9bb3
--- /dev/null
+++ b/tests/headers/union_template.hpp
@@ -0,0 +1,19 @@
+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;
+};