Skip to content

Commit 47e5b2c

Browse files
committed
Add test
1 parent 8e034a8 commit 47e5b2c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

lld/test/COFF/strtab.s

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# RUN: llvm-mc -triple=x86_64-windows-msvc %s -filetype=obj -o %t.obj
2+
# RUN: lld-link -out:%t.exe -entry:main %t.obj -debug:dwarf
3+
# RUN: llvm-readobj --string-table %t.exe | FileCheck %s
4+
5+
# CHECK: StringTable {
6+
# CHECK-NEXT: Length: 87
7+
# CHECK-NEXT: [ 4] .debug_abbrev
8+
# CHECK-NEXT: [ 12] .debug_line
9+
# CHECK-NEXT: [ 1e] long_name_symbolz
10+
# CHECK-NEXT: [ 30] .debug_abbrez
11+
# CHECK-NEXT: [ 3e] __impl_long_name_symbolA
12+
# CHECK-NEXT: }
13+
14+
15+
.global main
16+
.text
17+
main:
18+
long_name_symbolz:
19+
long_name_symbolA:
20+
__impl_long_name_symbolA:
21+
name_symbolA:
22+
.debug_abbrez:
23+
ret
24+
25+
.section .debug_abbrev,"dr"
26+
.byte 0
27+
28+
.section .debug_line,"dr"
29+
.byte 0

0 commit comments

Comments
 (0)