From b1960e2b9ca2bb87303795170d27f839ed966a54 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 30 Nov 2015 23:46:32 +0000 Subject: [PATCH] [PR25661] Revert part of r217213 according to r254323. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254346 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CXX/drs/dr5xx.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/test/CXX/drs/dr5xx.cpp b/test/CXX/drs/dr5xx.cpp index 0cf67e6b8c..17b525d962 100644 --- a/test/CXX/drs/dr5xx.cpp +++ b/test/CXX/drs/dr5xx.cpp @@ -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 struct X; - template struct X {}; + template struct X {}; template X f(T C::*) { return X(); } struct S { void f() const; }; - X x = f(&S::f); - -#undef THISCALL + X x = f(&S::f); } namespace dr548 { // dr548: dup 482 -- 2.40.0