2014-11-24 09:15:30 +00:00
|
|
|
// 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 {
|
2018-07-28 11:06:01 +00:00
|
|
|
// MINGW: declare dso_local x86_thiscallcc void @_ZN5test13foo1fEv
|
|
|
|
// CYGWIN: declare dso_local void @_ZN5test13foo1fEv
|
2014-11-24 09:15:30 +00:00
|
|
|
void f();
|
|
|
|
};
|
|
|
|
void g(foo *x) {
|
|
|
|
x->f();
|
|
|
|
}
|
|
|
|
}
|