1 /* { dg-do compile { target *-*-darwin* } } */
2 /* { dg-options "--param case-values-threshold=3 -O2" } */
3 /* { dg-additional-options "-funwind-tables" { target powerpc*-*-darwin* } }
4
5 /* This is testing that a trailing local label is followed by a
6 nop where required. */
7
foo(int x)8 int foo (int x)
9 {
10 switch (x)
11 {
12 case 0:
13 return 10;
14 case 3:
15 return -1;
16 case 5:
17 return 29;
18 default:
19 __builtin_unreachable();
20 }
21 }
22
23 /* { dg-final { scan-assembler "nop\\nLFE.*" { target { *-*-darwin* } } } } */
24