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