* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / loop2.C
blobaee612ab510bdc36168a860903ceb8c6b040e63b
1 // PR middle-end/22484
2 // { dg-do compile }
3 // { dg-options "-O3" }
5 struct A { ~A(); };
6 typedef bool B;
8 bool foo();
10 bool bar(A&)
12   B b = true;
14   for (int i = 0; i < 2 && b; ++i)
15     b = foo();
17   return b;
20 void baz()
22   A a;
23   if (bar(a)) foo();