1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3 
4 void exit(int);
5 
main(int argc,char ** argv)6 int main(int argc, char **argv)
7 {
8   switch (argc)
9     {
10     case 1:
11       return 1;
12     case 2:
13       return 2;
14     case 3:
15       exit(1);
16     case 4:
17       exit(2);
18     default:
19       return 5;
20     }
21 
22   return 10;
23 }
24 
25 /* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 33.30%" 3 "profile_estimate"} } */
26 /* { dg-final { scan-tree-dump-times "combined heuristics of edge\[^:\]*: 0.05%" 2 "profile_estimate"} } */
27