gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-13.c
blob7fe714a0d72f6bebc9a7f73b05b14865deb6110c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 int main(int argc, char **argv)
6 switch (argc)
8 case 1:
9 return 1;
10 case 2:
11 return 2;
12 case 3:
13 __builtin_abort();
14 case 4:
15 __builtin_abort();
16 default:
17 return 5;
20 return 10;
23 /* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 33.3%" 3 "profile_estimate"} } */
24 /* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 0.0%" 2 "profile_estimate"} } */