From 53992adde3eda3ccf9da63bc7e45673f043de18f Mon Sep 17 00:00:00 2001 From: rdivacky Date: Thu, 27 May 2010 15:17:06 +0000 Subject: Update clang to r104832. --- test/SemaTemplate/temp_explicit.cpp | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'test/SemaTemplate/temp_explicit.cpp') diff --git a/test/SemaTemplate/temp_explicit.cpp b/test/SemaTemplate/temp_explicit.cpp index fbb41ff..76244c2 100644 --- a/test/SemaTemplate/temp_explicit.cpp +++ b/test/SemaTemplate/temp_explicit.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -pedantic -Wc++0x-compat %s // // Tests explicit instantiation of templates. template class X0 { }; @@ -125,3 +125,27 @@ template <> // expected-warning{{extraneous template parameter list}} template <> struct Foo::Bar {}; + +namespace N1 { + + template struct X7 { }; // expected-note{{here}} + + namespace Inner { + template struct X8 { }; + } + + template struct X7; + template struct Inner::X8; +} + +template struct X9 { }; // expected-note{{here}} + +template struct ::N1::Inner::X8; + +namespace N2 { + using namespace N1; + + template struct X7; // expected-warning{{must occur in namespace}} + + template struct X9; // expected-warning{{must occur in the global}} +} -- cgit v1.1