add opensuse toolchain support, patch by Ismail Donmez!
[clang/stm8.git] / test / SemaTemplate / class-template-id-2.cpp
blobd09f52476b312d42638d4ccdf2c518eb90a76dcd
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 namespace N {
3 template<typename T> class A { };
5 template<> class A<int> { };
7 template<> class A<float>; // expected-note{{forward declaration of 'N::A<float>'}}
9 class B : public A<int> { };
12 class C1 : public N::A<int> { };
14 class C2 : public N::A<float> { }; // expected-error{{base class has incomplete type}}
16 struct D1 {
17 operator N::A<int>();
20 namespace N {
21 struct D2 {
22 operator A<int>();