struct simple { int first; long int second; }; struct simple_union { int zeroth; union { int first; long int second; }; int third; }; struct simple_bitfield { char first:1; char second:2; }; struct array_in_union { union { char first[12]; int second; }; }; /* need to use the structs to have them embedded */ void use_structs(void) { struct simple simple __attribute__((unused)); struct simple_union simple_union __attribute__((unused)); struct simple_bitfield simple_bitfield __attribute__((unused)); struct array_in_union array_in_union __attribute__((unused)); return; }