2013-04-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / predict-loop-exit-1.C
blob2289552b38f4d2796e7a6c70b00a24db29e0e139
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */
4 int g;
5 int foo();
6 void test() {
7   while (foo() && g < 10)
8     g++;
9   return;
12 /* { dg-final { scan-tree-dump-times "loop exit heuristics:" 3 "profile_estimate"} } */
13 /* { dg-final { cleanup-tree-dump "profile_estimate" } } */