Debian Codegraph @

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

raw
1 // PR c++/115223
2 // { dg-do compile { target c++11 } }
3 // { dg-require-effective-target lto }
4 // { dg-additional-options -flto }
5
6 template<class T>
7 void f() noexcept(bool(T() || true));
8
9 void g() { f<int>(); }
10
11 using type = void;
12 type callDestructorIfNecessary() noexcept {}