summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/incomplete-5.c
blob: 049c34a20a98263545d34ce0ce5a6cbfb0b368eb (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 *-*-* } 6 } */
};