1 // RUN: %clang_cc1 -std=c++2a -x c++ -verify %s
5 using Y
= typename
T::invalid
;
9 concept Invalid
= X
<T
>{};
12 concept False
= false; // expected-note{{because 'false' evaluated to false}}
17 // TODO: Concepts: Uncomment trailing requires clauses here when we have correct substitution.
20 //void g1() requires Invalid<T>;
22 //using g1i = decltype(g1<int>());
24 template<False T
> // expected-note{{because 'int' does not satisfy 'False'}}
26 void g2(); // requires Invalid<T>;
27 // expected-note@-1{{candidate template ignored: constraints not satisfied [with T = int]}}
29 using g2i
= decltype(g2
<int>());
30 // expected-error@-1{{no matching function for call to 'g2'}}