[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / mingw-new-abi.cpp
blobfe98a1fb2f0224c7d731f096a470c16aa6c30c61
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
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();