summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/switch-warn-3.c
blob: e13b4f58a7f065f3dd128b26630fc546394167a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-Wswitch-enum" } */

enum a { a0, a1, a2, a3 };

int error(enum a aa)
{
  switch ( aa )
  {
  case a0 ... a3:
    return 1;
  }
  return 0;
}