aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/incomplete-5.c
blob: 1644fd6db3767a643790e032ed6631ffb1a0aeac (plain)
1
2
3
4
5
6
7
8
/* ICE on unnamed field with incomplete enum type: PR 40032.  */
/* { dg-do compile } */
/* { dg-options "" } */
struct A
{
  enum E : 8; /* { dg-warning "narrower than values of its type" } */
  /* { dg-error "has incomplete type" "incomplete" { target *-*-* } .-1 } */
};