Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/opt/reg-stack3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |