comparison gcc/testsuite/gcc.dg/predict-14.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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"} } */