summaryrefslogtreecommitdiff
path: root/tests/headers/layout.h
blob: b290ee856b8f53c8caeaeb9efd1ed200fa2597e4 (plain)
1
2
3
4
5
6
7
8
9
10
// bindgen-flags: --rust-target 1.21
//
// FIXME: https://github.com/rust-lang/rust-bindgen/issues/1498

struct header
{
    char proto;
    unsigned int size __attribute__ ((packed));
    unsigned char data[] __attribute__ ((aligned(8)));
} __attribute__ ((aligned, packed));