summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/switch-10.c
blob: 9e5926745b88c39a3a2309fe7b10949a3ed5da96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-options "-O2 -fdump-tree-cfg" }  */
#include <stdint.h>

void foo (void);
void bar (void);

void
test (uint8_t ch)
{
  switch (ch)
   {
   case 0:
     foo ();
     break;

   case 1 ... 255:
     bar ();
     break;
   }
}

/* Switch statement is converted to GIMPLE condition.  */
/* { dg-final { scan-tree-dump-not "switch" "cfg" } }  */