zig/test/cases/translate_c/packed_union_simple.c
2024-05-09 13:46:50 -07:00

14 lines
237 B
C

union Foo {
short x;
double y;
} __attribute__((packed));
// translate-c
// c_frontend=aro,clang
//
// pub const union_Foo = extern union {
// x: c_short align(1),
// y: f64 align(1),
// };
//
// pub const Foo = union_Foo;