xref: /aosp_15_r20/external/llvm/test/MC/COFF/symbol-mangling.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; The purpose of this test is to see if the MC layer properly handles symbol
2*9880d681SAndroid Build Coastguard Worker; names needing quoting on MS/Windows. This code is generated by clang when
3*9880d681SAndroid Build Coastguard Worker; using -cxx-abi microsoft.
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Worker; RUN: llc -filetype=asm -mtriple i686-pc-win32 %s -o - | FileCheck %s
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker; CHECK: ?sayhi@A@@QBEXXZ
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker%struct.A = type {}
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Workerdefine i32 @main() {
12*9880d681SAndroid Build Coastguard Workerentry:
13*9880d681SAndroid Build Coastguard Worker  tail call void @"\01?sayhi@A@@QBEXXZ"(%struct.A* null)
14*9880d681SAndroid Build Coastguard Worker  ret i32 0
15*9880d681SAndroid Build Coastguard Worker}
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Workerdeclare void @"\01?sayhi@A@@QBEXXZ"(%struct.A*)
18