Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/predict-14.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ | |
3 | |
4 void test(void) __attribute__ ((noreturn)); | |
5 | |
6 int main(int argc, char **argv) | |
7 { | |
8 switch (argc) | |
9 { | |
10 case 1: | |
11 test(); | |
12 case 4: | |
13 test(); | |
14 default: | |
15 test(); | |
16 } | |
17 | |
18 return 10; | |
19 } | |
20 | |
21 /* { dg-final { scan-tree-dump-times "predicted to even probabilities" 4 "profile_estimate"} } */ |