Files
llvm-project/clang/test/CodeGenCXX/mingw-new-abi.cpp
Rafael Espindola 3497069784 Switch to the new MingW ABI.
GCC 4.7 changed the MingW ABI. On the clang side this means that methods now
have the thiscall calling convention by default.

llvm-svn: 197164
2013-12-12 16:07:11 +00:00

14 lines
396 B
C++

// RUN: %clang_cc1 -emit-llvm -triple i386-pc-mingw32 %s -o - | FileCheck --check-prefix=MINGW %s
// RUN: %clang_cc1 -emit-llvm -triple i386-pc-cygwin %s -o - | FileCheck --check-prefix=CYGWIN %s
namespace test1 {
struct foo {
// MINGW: declare x86_thiscallcc void @_ZN5test13foo1fEv
// CYGWIN: declare void @_ZN5test13foo1fEv
void f();
};
void g(foo *x) {
x->f();
}
}