aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/noexcept-type15.C
blob: cc5a3edf1e4b64bb62c5ba65457a41d777e323b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/80384
// { dg-options -std=c++17 }

template<class> struct foo;
template<bool B>
struct foo<int() noexcept(B)> {
    static const bool value = B; 
};

static_assert(!foo<int()>::value);
static_assert(foo<int() noexcept>::value);