1 // RUN: %clang_cc1 -fsyntax-only -fms-extensions -std=c++11 -verify %s
6 class ClassTemplate
; // expected-note {{explicitly specialized declaration is here}}
8 template <class T1
, class T2
>
9 class ClassTemplatePartial
; // expected-note {{explicitly specialized declaration is here}}
11 template <typename T
> struct X
{
12 struct MemberClass
; // expected-note {{explicitly specialized declaration is here}}
13 enum MemberEnumeration
; // expected-note {{explicitly specialized declaration is here}} // expected-error {{ISO C++ forbids forward references to 'enum' types}}
21 class A::ClassTemplate
<int>; // expected-warning {{class template specialization of 'ClassTemplate' not in a namespace enclosing 'A' is a Microsoft extension}}
24 class A::ClassTemplatePartial
<T1
, T1
*> {}; // expected-warning {{class template partial specialization of 'ClassTemplatePartial' not in a namespace enclosing 'A' is a Microsoft extension}}
27 struct A::X
<int>::MemberClass
; // expected-warning {{member class specialization of 'MemberClass' not in class 'X' or an enclosing namespace is a Microsoft extension}}
30 enum A::X
<int>::MemberEnumeration
; // expected-warning {{member enumeration specialization of 'MemberEnumeration' not in class 'X' or an enclosing namespace is a Microsoft extension}} // expected-error {{ISO C++ forbids forward references to 'enum' types}}