aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/testsuite/gcc.dg/wcaselabel-1.c
blob: 6f673dfaf690716f5c9604552fda78d6f3887dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-w" } */


int foo(int x)
{
  switch(x)
  {

  case 0 % 0:	 /* { dg-error "case label does not reduce to an integer constant" } */
    return 1;
  default:
    return 2;
  }
}