diff --git a/clang/test/CXX/drs/dr5xx.cpp b/clang/test/CXX/drs/dr5xx.cpp index 0cf67e6b8c24..17b525d96228 100644 --- a/clang/test/CXX/drs/dr5xx.cpp +++ b/clang/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