llvm-project/clang/test/CodeGen/mangle-windows-rtd.c
Rafael Espindola 002667c32b On 32 bit windows, mangle stdcall and fastcall decls in clang.
This removes the dependency on the llvm mangler doing it for us. In isolation,
the benefit is that the testing of what mangling is applied is all in one place:
(C, C++) X (Itanium, Microsoft) are all handled by clang.

This also gives me hope that in the future the llvm mangler (and llvm-ar) will
not depend on TargetMachine.

llvm-svn: 192762
2013-10-16 01:40:34 +00:00

11 lines
300 B
C

// RUN: %clang_cc1 -emit-llvm -mrtd %s -o - -triple=i386-mingw32 | FileCheck %s
void f1(void) {}
// CHECK: define x86_stdcallcc void @"\01_f1@0"
void __stdcall f2(void) {}
// CHECK: define x86_stdcallcc void @"\01_f2@0"
void __fastcall f3(void) {}
// CHECK: define x86_fastcallcc void @"\01@f3@0"