2018-11-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / transparent-union-6.c
blobdcad69b278714f92e034b2e461a2bb0eaf040700
1 /* PR c/54391 - transparent_union typedef'ing inconsistent
2 { dg-do compile }
3 { dg-options "-Wall" } */
5 typedef union m30_u m30_t;
7 union __attribute__((transparent_union)) m30_u {
8 int u;
9 };
11 double make_double (m30_t);
13 double f (void)
15 int bar = 17;
16 return make_double (bar);