summaryrefslogtreecommitdiff
path: root/tests/headers/struct_with_anon_union_1_0.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/struct_with_anon_union_1_0.h')
-rw-r--r--tests/headers/struct_with_anon_union_1_0.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/struct_with_anon_union_1_0.h b/tests/headers/struct_with_anon_union_1_0.h
new file mode 100644
index 00000000..5cedd4a3
--- /dev/null
+++ b/tests/headers/struct_with_anon_union_1_0.h
@@ -0,0 +1,8 @@
+// bindgen-flags: --rust-target 1.0
+
+struct foo {
+ union {
+ unsigned int a;
+ unsigned short b;
+ } bar;
+};