brintos

brintos / llvm-project-archived public Read only

0
0
Text · 552 B · 49f289d Raw
25 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3template<typename T, int N>4struct A;5 6template<typename T>7struct A<T*, 2> {8  void f0();9  void f1();10  void f2();11};12 13template<>14struct A<int, 1> {15  void g0();16};17 18// FIXME: We should produce diagnostics pointing out the19// non-matching candidates.20template<typename T, int N>21void A<T*, 2>::f0() { } // expected-error{{does not refer into a class, class template or class template partial specialization}}22 23template<typename T, int N>24void A<T, N>::f1() { } // expected-error{{out-of-line definition}}25