summaryrefslogtreecommitdiff
path: root/tests/headers/anon_struct_in_union.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/headers/anon_struct_in_union.h')
-rw-r--r--tests/headers/anon_struct_in_union.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/headers/anon_struct_in_union.h b/tests/headers/anon_struct_in_union.h
new file mode 100644
index 00000000..880a8b54
--- /dev/null
+++ b/tests/headers/anon_struct_in_union.h
@@ -0,0 +1,7 @@
+struct s {
+ union {
+ struct inner {
+ int b;
+ } field;
+ } u;
+};