summaryrefslogtreecommitdiff
path: root/tests/headers/union_fields_1_0.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/union_fields_1_0.hpp')
-rw-r--r--tests/headers/union_fields_1_0.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/headers/union_fields_1_0.hpp b/tests/headers/union_fields_1_0.hpp
new file mode 100644
index 00000000..6f20900f
--- /dev/null
+++ b/tests/headers/union_fields_1_0.hpp
@@ -0,0 +1,7 @@
+// bindgen-flags: --rust-target 1.0 --with-derive-hash
+
+typedef union {
+ int mInt;
+ float mFloat;
+ void* mPointer;
+} nsStyleUnion;