OSDN Git Service

PR rtl-optimization/23454
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / opt / reg-stack3.C
1 // PR target/12712
2 // Origin: Markus Schoder <gccbug@gammarayburst.de>
3
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.
7
8 // { dg-do compile }
9
10 struct A
11 {
12   ~A();
13   float f(float x);
14   float g() const {return 0;}
15 };
16
17 void h()
18 {
19   A a, b;
20   a.f(b.g() + 1);
21 }