From 952eddef9aff85b1e92626e89baaf7a360e2ac85 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 22 Dec 2013 00:07:40 +0000 Subject: Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3): https://llvm.org/svn/llvm-project/cfe/branches/release_34@197841 --- test/Parser/DelayedTemplateParsing.cpp | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'test/Parser/DelayedTemplateParsing.cpp') diff --git a/test/Parser/DelayedTemplateParsing.cpp b/test/Parser/DelayedTemplateParsing.cpp index 77b4723..73128c4 100644 --- a/test/Parser/DelayedTemplateParsing.cpp +++ b/test/Parser/DelayedTemplateParsing.cpp @@ -11,7 +11,8 @@ class A { template class B { void foo4() { } // expected-note {{previous definition is here}} expected-note {{previous definition is here}} - void foo4() { } // expected-error {{class member cannot be redeclared}} expected-error {{redefinition of 'foo4'}} expected-note {{previous definition is here}} + void foo4() { } // expected-error {{class member cannot be redeclared}} expected-error {{redefinition of 'foo4'}} + void foo5() { } // expected-note {{previous definition is here}} friend void foo3() { undeclared(); @@ -20,7 +21,7 @@ class B { template -void B::foo4() {// expected-error {{redefinition of 'foo4'}} +void B::foo5() { // expected-error {{redefinition of 'foo5'}} } template @@ -101,3 +102,22 @@ namespace rdar11700604 { }; } +namespace PR17334 { + +template struct ArrayRef { + constexpr ArrayRef() {} +}; +template void CreateConstInBoundsGEP2_32() { + ArrayRef<> IdxList; +} +void LLVMBuildStructGEP() { CreateConstInBoundsGEP2_32(); } + +} + +namespace PR17661 { +template +constexpr T Fun(T A) { return T(0); } + +constexpr int Var = Fun(20); +} + -- cgit v1.1