summaryrefslogtreecommitdiff
path: root/tests/headers/union_with_nesting.h
blob: f3135b4799009f8447926b80e1448ce42cf2f216 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// bindgen-flags: --with-derive-hash

union foo {
    unsigned int a;
    struct {
        union {
            unsigned short b1;
            unsigned short b2;
        };

        union {
            unsigned short c1;
            unsigned short c2;
        };
    };
};