Lines Matching defs:templated
202 T templated(T m) __attribute__((enable_if(true, ""))) { return T(); }
204 T templated(T m) __attribute__((enable_if(false, ""))) { return T(); }
206 int (*p)(int) = templated<int>;
207 int (*p2)(int) = &templated<int>;
209 a = templated<int>;
210 a = &templated<int>;
408 template <int N> constexpr int templated() __attribute__((enable_if(N, ""))) {
412 constexpr int A = templated<0>(); // expected-error{{no matching function for call to 'templated'}} expected-note@-4{{candidate disabled}}
413 static_assert(templated<1>() == 1, "");
415 template <int N> constexpr int callTemplated() { return templated<N>(); }
418 callTemplated<0>(); // expected-error@-3{{no matching function for call to 'templated'}} expected-note{{in instantiation of function template}} expected-note@-10{{candidate disabled}}