14 lines · cpp
1// RUN: %clang_cc1 -emit-llvm -triple i386-pc-mingw32 %s -o - | FileCheck --check-prefix=MINGW %s2// RUN: %clang_cc1 -emit-llvm -triple i386-pc-cygwin %s -o - | FileCheck --check-prefix=CYGWIN %s3 4namespace test1 {5 struct foo {6 // MINGW: declare dso_local x86_thiscallcc void @_ZN5test13foo1fEv7 // CYGWIN: declare dso_local void @_ZN5test13foo1fEv8 void f();9 };10 void g(foo *x) {11 x->f();12 }13}14