annotate lld/test/ELF/vs-diagnostics-duplicate-split.s @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: x86
anatofuz
parents:
diff changeset
2 // RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
anatofuz
parents:
diff changeset
3 // RUN: not ld.lld --vs-diagnostics --shared %t.o %t.o -o /dev/null 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // CHECK: /tmp{{/|\\}}duplicate.s(15): error: duplicate symbol: foo
anatofuz
parents:
diff changeset
6 // CHECK-NEXT: >>> defined at duplicate.s:15 (/tmp{{/|\\}}duplicate.s:15)
anatofuz
parents:
diff changeset
7 // CHECK-NEXT: >>>{{.*}}.o:(.text+0x{{.+}})
anatofuz
parents:
diff changeset
8 // CHECK: /tmp{{/|\\}}duplicate.s(15): error: duplicate symbol: foo
anatofuz
parents:
diff changeset
9 // CHECK-NEXT: >>> defined at duplicate.s:15 (/tmp{{/|\\}}duplicate.s:15)
anatofuz
parents:
diff changeset
10 // CHECK-NEXT: >>>{{.*}}.o:(.text+0x{{.+}})
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 .file 1 "/tmp" "duplicate.s"
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 .global foo
anatofuz
parents:
diff changeset
15 .text
anatofuz
parents:
diff changeset
16 .loc 1 15
anatofuz
parents:
diff changeset
17 foo:
anatofuz
parents:
diff changeset
18 nop
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 .section .debug_abbrev,"",@progbits
anatofuz
parents:
diff changeset
21 .byte 1 # Abbreviation Code
anatofuz
parents:
diff changeset
22 .byte 17 # DW_TAG_compile_unit
anatofuz
parents:
diff changeset
23 .byte 0 # DW_CHILDREN_no
anatofuz
parents:
diff changeset
24 .byte 16 # DW_AT_stmt_list
anatofuz
parents:
diff changeset
25 .byte 23 # DW_FORM_sec_offset
anatofuz
parents:
diff changeset
26 .byte 0 # EOM(1)
anatofuz
parents:
diff changeset
27 .byte 0 # EOM(2)
anatofuz
parents:
diff changeset
28 .byte 0 # EOM(3)
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 .section .debug_info,"",@progbits
anatofuz
parents:
diff changeset
31 .long .Lend0 - .Lbegin0 # Length of Unit
anatofuz
parents:
diff changeset
32 .Lbegin0:
anatofuz
parents:
diff changeset
33 .short 4 # DWARF version number
anatofuz
parents:
diff changeset
34 .long .debug_abbrev # Offset Into Abbrev. Section
anatofuz
parents:
diff changeset
35 .byte 8 # Address Size (in bytes)
anatofuz
parents:
diff changeset
36 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit
anatofuz
parents:
diff changeset
37 .long .debug_line # DW_AT_stmt_list
anatofuz
parents:
diff changeset
38 .Lend0:
anatofuz
parents:
diff changeset
39 .section .debug_line,"",@progbits