Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/builtin-unreachable-6.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
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" } } */ |