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