Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr57438-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 | |
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* } } } } */ |