r214152 - Revert accidentally-committed files in r214151.

Richard Smith richard-llvm at metafoo.co.uk
Mon Jul 28 17:54:09 PDT 2014


Author: rsmith
Date: Mon Jul 28 19:54:09 2014
New Revision: 214152

URL: http://llvm.org/viewvc/llvm-project?rev=214152&view=rev
Log:
Revert accidentally-committed files in r214151.

Modified:
    cfe/trunk/test/Modules/Inputs/cxx-templates-a.h
    cfe/trunk/test/Modules/Inputs/cxx-templates-b.h
    cfe/trunk/test/Modules/cxx-templates.cpp

Modified: cfe/trunk/test/Modules/Inputs/cxx-templates-a.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/cxx-templates-a.h?rev=214152&r1=214151&r2=214152&view=diff
==============================================================================
--- cfe/trunk/test/Modules/Inputs/cxx-templates-a.h (original)
+++ cfe/trunk/test/Modules/Inputs/cxx-templates-a.h Mon Jul 28 19:54:09 2014
@@ -75,10 +75,3 @@ template<typename T> struct MergeTemplat
 template<typename T> constexpr int MergeTemplateDefinitions<T>::f() { return 1; }
 
 template<typename T> using AliasTemplate = T;
-
-template<typename T> struct PartiallyInstantiatePartialSpec {};
-template<typename T> struct PartiallyInstantiatePartialSpec<T*> {
-  static T *foo() { return reinterpret_cast<T*>(0); }
-  static T *bar() { return reinterpret_cast<T*>(0); }
-};
-typedef PartiallyInstantiatePartialSpec<int*> PartiallyInstantiatePartialSpecHelper;

Modified: cfe/trunk/test/Modules/Inputs/cxx-templates-b.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/Inputs/cxx-templates-b.h?rev=214152&r1=214151&r2=214152&view=diff
==============================================================================
--- cfe/trunk/test/Modules/Inputs/cxx-templates-b.h (original)
+++ cfe/trunk/test/Modules/Inputs/cxx-templates-b.h Mon Jul 28 19:54:09 2014
@@ -73,5 +73,4 @@ template<typename T> void UseDefinedInBI
 void TriggerInstantiation() {
   UseDefinedInBImpl<void>();
   Std::f<int>();
-  PartiallyInstantiatePartialSpec<int*>::foo();
 }

Modified: cfe/trunk/test/Modules/cxx-templates.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/cxx-templates.cpp?rev=214152&r1=214151&r2=214152&view=diff
==============================================================================
--- cfe/trunk/test/Modules/cxx-templates.cpp (original)
+++ cfe/trunk/test/Modules/cxx-templates.cpp Mon Jul 28 19:54:09 2014
@@ -105,7 +105,6 @@ void g() {
 
   int &p = WithPartialSpecializationUse().f();
   int &q = WithExplicitSpecializationUse().inner_template<int>();
-  int *r = PartiallyInstantiatePartialSpec<int*>::bar();
 }
 
 static_assert(Outer<int>::Inner<int>::f() == 1, "");





More information about the cfe-commits mailing list