Debian Codegraph @

gcc/testsuite/g++.dg/eh/return3.C

raw
1 // PR c++/113347
2
3 #if __cplusplus < 201103L
4 #define THROWS
5 #else
6 #define THROWS noexcept(false)
7 #endif
8
9 struct A { ~A(); };
10 struct B { ~B() THROWS; };
11
12 A f()
13 {
14 A a;
15 return a;
16 B();
17 }