1 /* { dg-do compile } */
2 /* Supplying case-values-threshold makes the testcase less target dependent. */
3 /* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=4" } */
5 int IsMySuperRandomChar(int aChar
)
7 return aChar
== 0x0009 || aChar
== 0x000A ||
8 aChar
== 0x000C || aChar
== 0x000D ||
9 aChar
== 0x0020 || aChar
== 0x0030;
12 /* { dg-final { scan-tree-dump "Condition chain with \[^\n\r]\* BBs transformed into a switch statement." "iftoswitch" } } */