☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
eh
/
dead1.C
☽
☼
gcc/testsuite/g++.dg/eh/dead1.C
code
plain
raw
1
// PR 6320
2
// Rechained the MUST_NOT_THROW region in the wrong order wrt the
3
// TRY/CATCH while removing them and got confused.
4
// { dg-do compile }
5
6
struct S {
7
~S();
8
};
9
10
void foo()
11
{
12
try {
13
return;
14
}
15
catch (int) {
16
}
17
catch (...) {
18
S s;
19
}
20
}