summaryrefslogtreecommitdiff
path: root/tests/headers/enum_packed.h
blob: cc70c816d88d1017d7186ef14ad3ccd95e605631 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// bindgen-flags: --rustified-enum ".*"

enum __attribute__((packed)) Foo {
    Bar = 0,
    Qux
};

enum __attribute__((packed)) Neg {
    MinusOne = -1,
    One = 1,
};

enum __attribute__((packed)) Bigger {
    Much = 255,
    Larger
};