summaryrefslogtreecommitdiff
path: root/tests/headers/union_with_nesting.h
blob: e40f52124904f8e3f0ca171fa5d432ef587da3a0 (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;
        };
    };
};