summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr14475.c
blob: 8009d46565736687ab2e5ba457b3023354789414 (plain)
1
2
3
4
5
6
7
8
/* 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 "" "" } */
/* { dg-warning "" "" { target *-*-* } 6 } */
};