* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / reg-stack3.C
blob48dcb335b21e9a7b1701c8384b656b45a0c75e5a
1 // PR target/12712
2 // Origin: Markus Schoder <gccbug@gammarayburst.de>
4 // This used to segfault on x86 because the reg-stack pass
5 // created an unreachable basic block by purging an outgoing
6 // edge, and was not prepared to handle it.
8 // { dg-do compile }
10 struct A
12   ~A();
13   float f(float x);
14   float g() const {return 0;}
17 void h()
19   A a, b;
20   a.f(b.g() + 1);