Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/noexcept-type15.C

raw
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);