920035f555b4874cb3e058ffd17b620f96610da4
[oota-llvm.git] / test / MC / COFF / quoted-names.ll
1 ; Check that certain symbol and section names are quoted in the asm output.
2 ; RUN: llc -mtriple=i686-pc-win32 %s -o - | FileCheck %s
3
4 ; Check that the symbol and section names can round-trip through the assembler.
5 ; RUN: llc -mtriple=i686-pc-win32 %s -o - | llvm-mc -triple i686-pc-win32 -filetype=obj | llvm-readobj -s -section-symbols | FileCheck %s --check-prefix=READOBJ
6
7 @"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ" = global i32 0
8
9 define weak i32 @"\01??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51"() section ".text" {
10   %res = load i32* @"\01??__E_Generic_object@?$_Error_objects@H@std@@YAXXZ"
11   ret i32 %res
12 }
13
14 ; CHECK: .section ".text$??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51","xr"
15 ; CHECK: .globl "??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51"
16 ; CHECK: "??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51"
17
18 ; READOBJ: Symbol
19 ; READOBJ: Name: ??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51
20 ; READOBJ: Section: .text$??_B?$num_put@_WV?$back_insert_iterator@V?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@@std@@@std@@51