summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/noncompile/20041207.c
blob: 0d02da9090a17bf8c6139dba212bf6582e970a4e (plain)
1
2
3
4
5
6
7
8
/* PR18867 - ICE on a switch controlling expressions with an
   invalid type.  Origin: Serge Belyshev <belyshev@lubercy.com>  */
   
void f()
{
  float x;
  switch (x) {case 0: break;}; /* { dg-error "not an integer" } */
}