Debian Codegraph @

gcc/testsuite/g++.dg/compat/eh/ctor1_y.C

raw
1 extern bool was_f_in_Bar_destroyed;
2
3 #include "ctor1.h"
4
5 Foo::~Foo()
6 {
7 was_f_in_Bar_destroyed=true;
8 }
9
10 Bar::~Bar()
11 #if __cplusplus < 201103L
12 throw(int)
13 #else
14 noexcept(false)
15 #endif
16 {
17 throw 1;
18 }