1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 void bar (unsigned int);
14 case 1: ch
= 5; break;
15 case 2: ch
= 4; break;
16 case 3: ch
= 3; break;
17 case 4: ch
= 2; break;
18 case 5: ch
= 1; break;
19 default: ch
= 0; break;
23 /* The switch should be switch converted and later constant propagated. */
24 /* { dg-final { scan-tree-dump-not "CSWTCH" "optimized"} } */
25 /* { dg-final { scan-tree-dump-not "switch" "optimized"} } */