summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/disable-nested-struct-naming.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/disable-nested-struct-naming.h')
-rw-r--r--bindgen-tests/tests/headers/disable-nested-struct-naming.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/disable-nested-struct-naming.h b/bindgen-tests/tests/headers/disable-nested-struct-naming.h
new file mode 100644
index 00000000..0e4fccb6
--- /dev/null
+++ b/bindgen-tests/tests/headers/disable-nested-struct-naming.h
@@ -0,0 +1,24 @@
+// bindgen-flags: --disable-nested-struct-naming
+
+struct foo {
+ struct bar1 {
+ int x1;
+ struct {
+ int x2;
+ struct {
+ int x3;
+ struct bar4 {
+ int x4;
+ } b4;
+ } b3;
+ } b2;
+ } b1;
+};
+
+struct {
+ struct {
+ struct baz {
+ int x;
+ } b;
+ } anon2;
+} anon1;