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