gcc/testsuite/gcc.dg/transparent-union-6.c
raw| 1 | /* PR c/54391 - transparent_union typedef'ing inconsistent |
| 2 | { dg-do compile } |
| 3 | { dg-options "-Wall" } */ |
| 4 | |
| 5 | typedef union m30_u m30_t; |
| 6 | |
| 7 | union __attribute__((transparent_union)) m30_u { |
| 8 | int u; |
| 9 | }; |
| 10 | |
| 11 | double make_double (m30_t); |
| 12 | |
| 13 | double f (void) |
| 14 | { |
| 15 | int bar = 17; |
| 16 | return make_double (bar); |
| 17 | } |