Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-requires36.C
blob8d3a4fcd2aa2b4c67e4f20802bdee5686aab187b
1 // PR c++/111419
2 // { dg-do compile { target c++20 } }
4 template<class F>
5 concept invocable = requires(F& f) { f(); };
7 template<class F>
8 concept deref_invocable = requires(F& f) { *f(); };
10 struct Incomplete;
12 template<class T>
13 struct Holder { T t; };
15 static_assert(invocable<Holder<Incomplete>& ()>);
16 static_assert(deref_invocable<Holder<Incomplete>* ()>);