c++: simple-requirement starting with 'typename' [PR101733]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / concepts-requires32.C
blob117b8920787ee4ad6b86765bba2088fad999c5a2
1 // PR c++/101733
2 // { dg-do compile { target c++20 } }
4 template<class T>
5 requires requires {
6     typename T::type;
7     (typename T::type()); // (1)
8     T::type();            // (2)
9     typename T::type();   // (3)
11 void f(T) { }