Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/transparent-union-6.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
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 } |