summaryrefslogtreecommitdiff
path: root/tests/headers/disable-nested-struct-naming.h
blob: 0e4fccb6e248247fa9d2ca08676b940c93649a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;