☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
eh
/
dtor4.C
☽
☼
gcc/testsuite/g++.dg/eh/dtor4.C
code
plain
raw
1
// PR c++/109172
2
3
// Explicit { dg-require-effective-target exceptions_enabled } to avoid verify compiler messages FAILs for '-fno-exceptions'.
4
5
class Demo
6
{
7
~Demo();
8
};
9
10
int main()
11
{
12
try
13
{
14
throw *new Demo; // { dg-error private }
15
}
16
catch(const Demo& e) { }
17
}