summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/union_with_anon_unnamed_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/tests/headers/union_with_anon_unnamed_struct.h')
-rw-r--r--libbindgen/tests/headers/union_with_anon_unnamed_struct.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/union_with_anon_unnamed_struct.h b/libbindgen/tests/headers/union_with_anon_unnamed_struct.h
new file mode 100644
index 00000000..79558049
--- /dev/null
+++ b/libbindgen/tests/headers/union_with_anon_unnamed_struct.h
@@ -0,0 +1,9 @@
+union pixel {
+ unsigned int rgba;
+ struct {
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+ unsigned char a;
+ };
+};