Debian Codegraph @

gcc/testsuite/g++.dg/template/canon-type-16.C

raw
1 // { dg-do compile { target c++11 } }
2 template<bool u> struct bool_c{ static constexpr bool value = u; };
3 template<class T> auto noexcepty(T t) -> bool_c<noexcept(t())>;
4 template<class T> auto noexcepty(T t) -> bool_c<noexcept(t())>;
5 struct foo { void operator()() noexcept; };
6 static_assert(decltype(noexcepty(foo{}))::value, "");