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