summaryrefslogtreecommitdiff
path: root/tests/headers/union_with_nesting_1_0.h
blob: 3cdb7238bcb3b6734ea445eea2f79f916e4406f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// bindgen-flags: --rust-target 1.0 --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;
        };
    };
};