]> granicus.if.org Git - clang/commitdiff
clang/test/CXX/drs/dr5xx.cpp: Fix up assumption of thiscall. It affects not x64 but...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 5 Sep 2014 08:18:53 +0000 (08:18 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 5 Sep 2014 08:18:53 +0000 (08:18 +0000)
Note, i686-cygwin doesn't use thiscall.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@217234 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/drs/dr5xx.cpp

index 9ff67f88ccd7e048b7f6859715147cdda87fd0be..73f1a26b587a45983054ac3a6be207179e6bbb7b 100644 (file)
@@ -518,10 +518,10 @@ namespace dr546 { // dr546: yes
 }
 
 namespace dr547 { // dr547: yes
-  // When targeting the MS ABI, the type of a member function includes a
+  // 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__)
+#if defined(_M_IX86) || (defined(__MINGW32__) && !defined(__MINGW64__))
 #define THISCALL __thiscall
 #else
 #define THISCALL