diff options
Diffstat (limited to 'test/CodeGenCXX/mingw-new-abi.cpp')
-rw-r--r-- | test/CodeGenCXX/mingw-new-abi.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mingw-new-abi.cpp b/test/CodeGenCXX/mingw-new-abi.cpp new file mode 100644 index 000000000000..2b05253b0985 --- /dev/null +++ b/test/CodeGenCXX/mingw-new-abi.cpp @@ -0,0 +1,13 @@ +// 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(); + } +} |