summaryrefslogtreecommitdiff
path: root/tests/headers/union_with_nesting.h
blob: ae25244a04ce7df76f6048f0db51988ecc189abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
//
union foo {
    unsigned int a;
    struct {
        union {
            unsigned short b1;
            unsigned short b2;
        };

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