predict.c: merge multi-edges
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-13.c
blobdf82b7e708bb4e6fec1861a1a98742d111c72668
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_unreachable();
14 case 4:
15 __builtin_unreachable();
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"} } */