| 1 |
// PR c++/80384 |
| 2 |
// { dg-do compile { target c++17 } } |
| 3 |
|
| 4 |
template<class> struct foo; |
| 5 |
template<bool B> |
| 6 |
struct foo<int() noexcept(B)> { |
| 7 |
static const bool value = B; |
| 8 |
}; |
| 9 |
|
| 10 |
static_assert(!foo<int()>::value); |
| 11 |
static_assert(foo<int() noexcept>::value); |