1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/MC/COFF/symbol-mangling.ll
Michael J. Spencer 5fade79478 MC/X86/COFF: Allow quotes in names when targeting MS/Windows,
as MC is the only assembler we support.

This splits MS/Windows and GNU/Windows ASM infos into two seperate classes.
While there is currently only one difference, full MS C++ ABI support will
require many more.

llvm-svn: 145409
2011-11-29 18:00:06 +00:00

18 lines
450 B
LLVM

; The purpose of this test is to see if the MC layer properly handles symbol
; names needing quoting on MS/Windows. This code is generated by clang when
; using -cxx-abi microsoft.
; RUN: llc -filetype=asm -mtriple i686-pc-win32 %s -o - | FileCheck %s
; CHECK: ?sayhi@A@@QBEXXZ
%struct.A = type {}
define i32 @main() {
entry:
tail call void @"\01?sayhi@A@@QBEXXZ"(%struct.A* null)
ret i32 0
}
declare void @"\01?sayhi@A@@QBEXXZ"(%struct.A*)