summaryrefslogtreecommitdiff
path: root/tests/headers/struct_with_bitfields.h
blob: b994da4ecec68dbe022c21c67ecb20012cef3339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// bindgen-flags: -no-unstable-rust
struct bitfield {
    unsigned short
    a   :1,
    b   :1,
    c   :1,
        :1,
        :2,
    d   :2;
    int e;
    unsigned int f : 2;
    unsigned int g : 32;
};