summaryrefslogtreecommitdiff
path: root/tests/headers/explicit-padding.h
blob: 4abaafba9b1d9ba66d2aceb09957ee392af36ff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// bindgen-flags: --explicit-padding

typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;

struct pad_me {
        uint8_t first;
        uint32_t second;
        uint16_t third;
};

union dont_pad_me {
        uint8_t first;
        uint32_t second;
        uint16_t third;
};