Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/noexcept69.C

raw
1 // PR c++/100752
2 // { dg-do compile { target c++11 } }
3
4 struct S {
5 void f() noexcept {}
6 S &g() noexcept(noexcept(f())) { f(); return *this; }
7 };
8
9 struct X {
10 int& f() noexcept(noexcept(i));
11 int i;
12 };