aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.6/gcc/testsuite/gcc.dg/pr14475.c
blob: 4fa5b0436614184b1c9216b0d0841a05a1807649 (plain)
1
2
3
4
5
6
7
8
9
10
/* This used to ICE because there was no null check in
   check_bitfield_type_and_width. */

struct tree_common
{
  enum tree_code code : 8; /* { dg-error "ISO C forbids forward references to" "" } */
  /* { dg-error "type of bit-field .code. is a GCC extension" "" { target *-*-* } 6 } */
  /* { dg-warning "narrower than values of its type" "" { target *-*-* } 6 } */
  /* { dg-error "incomplete type" "" { target *-*-* } 6 } */
};