Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/builtin-unreachable-6.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 } */ |
131 | 2 /* { dg-options "-O2 -fdump-tree-fab1 -fno-tree-dominator-opts -fno-tree-vrp" } */ |
3 /* { dg-require-effective-target label_values } */ | |
111 | 4 |
5 void | |
6 foo (int b, int c) | |
7 { | |
8 void *x = &&lab; | |
9 if (b) | |
10 { | |
11 lab: | |
12 __builtin_unreachable (); | |
13 } | |
14 lab2: | |
15 if (c) | |
16 x = &&lab2; | |
17 goto *x; | |
18 } | |
19 | |
20 /* { dg-final { scan-tree-dump-times "lab:" 1 "fab1" } } */ | |
21 /* { dg-final { scan-tree-dump-times "__builtin_unreachable" 1 "fab1" } } */ |