]> granicus.if.org Git - clang/commitdiff
[PR25661] Revert part of r217213 according to r254323.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 30 Nov 2015 23:46:32 +0000 (23:46 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 30 Nov 2015 23:46:32 +0000 (23:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254346 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/drs/dr5xx.cpp

index 0cf67e6b8c24bf9bbcdc715e6baf3f2e89aea76b..17b525d96228efe73df964b9fdadbe86fd8ceefc 100644 (file)
@@ -519,23 +519,12 @@ namespace dr546 { // dr546: yes
 }
 
 namespace dr547 { // dr547: yes
-  // When targeting the MS x86 ABI, the type of a member function includes a
-  // __thiscall qualifier. This is non-conforming, but we still implement
-  // the intent of dr547
-#if defined(_M_IX86) || (defined(__MINGW32__) && !defined(__MINGW64__))
-#define THISCALL __thiscall
-#else
-#define THISCALL
-#endif
-
   template<typename T> struct X;
-  template<typename T> struct X<THISCALL T() const> {};
+  template<typename T> struct X<T() const> {};
   template<typename T, typename C> X<T> f(T C::*) { return X<T>(); }
 
   struct S { void f() const; };
-  X<THISCALL void() const> x = f(&S::f);
-
-#undef THISCALL
+  X<void() const> x = f(&S::f);
 }
 
 namespace dr548 { // dr548: dup 482