PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / switch-10.c
blob9e5926745b88c39a3a2309fe7b10949a3ed5da96
1 /* { dg-options "-O2 -fdump-tree-cfg" } */
2 #include <stdint.h>
4 void foo (void);
5 void bar (void);
7 void
8 test (uint8_t ch)
10 switch (ch)
12 case 0:
13 foo ();
14 break;
16 case 1 ... 255:
17 bar ();
18 break;
22 /* Switch statement is converted to GIMPLE condition. */
23 /* { dg-final { scan-tree-dump-not "switch" "cfg" } } */