Debian Codegraph @

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

raw
1 // PR c++/104079
2 // { dg-do compile { target c++11 } }
3 // A variant of noexcept74.C where f is a function template.
4
5 template<bool B>
6 struct AT {
7 template<class...> static void f() noexcept(B);
8
9 void g() noexcept(noexcept(f())) {
10 static_assert(noexcept(f()), "");
11 }
12 };