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