Lines Matching full:template
2 // RUN: %clang_cc1 -fms-extensions -fdelayed-template-parsing -fsyntax-only -verify %s -Wno-microsoft
6 template<typename T> struct X { typedef int x; };
10 template<> struct X<int>; // expected-error {{explicit specialization of 'A::X<int>' after instantiation}}
11 template<> struct X<char>; // expected-note {{forward declaration}}
15 template<> struct X<double> {
21 template<> struct X<float> {}; // expected-note {{previous definition is here}}
22 template<> struct X<float> {}; // expected-error {{redefinition of 'A::X<float>'}}
28 template<class T> class B {
30 template<typename U> struct X { typedef int x; };
34 template<> struct X<int>; // expected-error {{explicit specialization of 'X<int>' after instantiation}}
35 template<> struct X<char>; // expected-note {{forward declaration}}
39 template<> struct X<double> {
45 template<> struct X<float> {}; // expected-note {{previous definition is here}}
46 template<> struct X<T> {}; // expected-error {{redefinition of 'X<float>'}}