Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.old-deja/g++.eh/crash1.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // { dg-do assemble } | |
2 // { dg-options "-O1 -fno-inline-functions" } | |
3 | |
4 struct A | |
5 { | |
6 ~A (); | |
7 }; | |
8 | |
9 bool foo (); | |
10 | |
11 int i; | |
12 int j; | |
13 | |
14 A bar () | |
15 { | |
16 for (i = 0; i < 1; ++i) | |
17 if (j) | |
18 { | |
19 A tmp; | |
20 return tmp; | |
21 } | |
22 } |