aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/transparent-union-1.c
blob: 91f2642fdbc8930efb300cbc08339f2cd31f3d64 (plain)
1
2
3
4
5
6
/* PR c++/51228 */
/* { dg-options "-Wno-c++-compat" { target c } } */

typedef union {} U __attribute__((transparent_union)); /* { dg-warning "ignored" } */

void foo(U u) {}