Debian Codegraph @

gcc/testsuite/g++.dg/concepts/abbrev11.C

raw
1 // PR c++/99806
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-fconcepts" }
4
5 template <typename T> concept C = requires (T a) { a.f(0); };
6 struct S {
7 void f(auto) noexcept(B);
8 static constexpr bool B = true;
9 };
10 static_assert(C<S>, "");