Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / temp_explicit_cxx0x.cpp
blobe37fcd7c6a5dff5b0bf4af377e773a664c0e55d0
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
2 namespace N1 {
4 template<typename T> struct X0 { }; // expected-note{{here}}
6 namespace Inner {
7 template<typename T> struct X1 { };
10 template struct X0<int>;
11 template struct Inner::X1<int>;
14 template<typename T> struct X2 { }; // expected-note{{here}}
16 template struct ::N1::Inner::X1<float>;
18 namespace N2 {
19 using namespace N1;
21 template struct X0<double>; // expected-error{{must occur in namespace 'N1'}}
23 template struct X2<float>; // expected-error{{at global scope}}