aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/COFF/symbol-mangling.ll
blob: f1b4b4becd0e95c3a32ed67f1ffe394b3d7bf005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; 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*)