blob: 99361cbac305ad352e81458e602ece4f2dd13421 [file] [log] [blame]
// { dg-do compile { target c++11 } }
template<bool u> struct bool_c{ static constexpr bool value = u; };
template<class T> auto noexcepty(T t) -> bool_c<noexcept(t())>;
template<class T> auto noexcepty(T t) -> bool_c<noexcept(t())>;
struct foo { void operator()() noexcept; };
static_assert(decltype(noexcepty(foo{}))::value, "");