Debian Codegraph @

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

raw
1 // Verify a non-constant conditional noexcept-specifier in a function type
2 // respects SFINAE.
3 // { dg-do compile { target c++17 } }
4
5 template<class T> void f(void() noexcept(T::value)) = delete;
6 template<class T> void f(...);
7
8 struct B { static bool value; };
9
10 int main() {
11 f<B>(nullptr);
12 }