[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-9.c
blob3823775e3f86896f462f9000f5638ba0f2a4bfba
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-profile_estimate" } */
4 extern int global;
5 extern int global2;
6 extern int global3;
8 void foo (int base)
10 int i;
11 while (global < 10)
13 if(global || global2 || global3)
14 return;
16 for (i = base; i < 10; i++)
17 if (i > 123)
18 return;
22 /* { dg-final { scan-tree-dump-times "first match heuristics: 2.2%" 3 "profile_estimate"} } */
23 /* { dg-final { scan-tree-dump-times "first match heuristics: 5.5%" 1 "profile_estimate"} } */