From ecbce69e354c77bf2d359111bad0c77c516e16f0 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 24 Sep 2013 04:49:23 +0000 Subject: Implement restriction that a partial specialization must actually specialize something, for variable templates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191278 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/PCH/cxx1y-variable-templates.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/PCH') diff --git a/test/PCH/cxx1y-variable-templates.cpp b/test/PCH/cxx1y-variable-templates.cpp index 0c600b29d3..77eeea22a2 100644 --- a/test/PCH/cxx1y-variable-templates.cpp +++ b/test/PCH/cxx1y-variable-templates.cpp @@ -58,7 +58,7 @@ namespace spec { template T vc = T(); template constexpr T vd = T(10); - template T* vd = new T(); + template T* vd = new T(); } namespace spec_join1 { @@ -72,7 +72,7 @@ namespace spec_join1 { template T vc = T(10); template T vd = T(10); - template extern T* vd; + template extern T* vd; } #endif @@ -108,7 +108,7 @@ namespace spec_join1 { template int vc; template extern T vd; - template T* vd = new T(); + template T* vd = new T(); } #endif @@ -146,16 +146,16 @@ namespace spec { static_assert(va == 1.5, ""); static_assert(va == 10, ""); - template T* vb = new T(); - int* intpb = vb; + template T* vb = new T(); + int* intpb = vb; static_assert(vb == 1.5, ""); - template T* vc = new T(); + template T* vc = new T(); template<> constexpr float vc = 1.5; - int* intpc = vc; + int* intpc = vc; static_assert(vc == 1.5, ""); - char* intpd = vd; + char* intpd = vd; } namespace spec_join1 { @@ -165,7 +165,7 @@ namespace spec_join1 { template extern T vb; int b = vb; - int* intpb = vd; + int* intpb = vd; } #endif -- cgit v1.2.3