Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
3
4 int isMyRandomCharacter(int aChar)
5 {
6 return aChar == 0x0001 || aChar == 0x000A ||
7 aChar == 0x000C || aChar == 0x000E ||
8 aChar == 0x0020;
9 }
10
11 /* { dg-final { scan-tree-dump "Condition chain with \[^\n\r]\* BBs transformed into a switch statement." "iftoswitch" } } */