blob: 215d2cfa08208e604dac23db4494e60ae6fddafd [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -fsyntax-only -std=c++0x -verify %s
2namespace N1 {
3
4 template<typename T> struct X0 { }; // expected-note{{here}}
5
6 namespace Inner {
7 template<typename T> struct X1 { };
8 }
9
10 template struct X0<int>;
11 template struct Inner::X1<int>;
12}
13
14template<typename T> struct X2 { }; // expected-note{{here}}
15
16template struct ::N1::Inner::X1<float>;
17
18namespace N2 {
19 using namespace N1;
20
21 template struct X0<double>; // expected-error{{not in a namespace enclosing}}
22
23 template struct X2<float>; // expected-error{{at global scope}}
24}