2 // RUN
: llvm-mc
-filetype
=obj
-triple
=x86_64
%s
-o
%t.o
3 // RUN
: not ld.lld
--vs-diagnostics
--shared
%t.o
%t.o
-o
/dev
/null
2>&1 | FileCheck
%s
5 // CHECK
: /tmp
{{/|
\\}}duplicate.s
(15): error
: duplicate symbol
: foo
6 // CHECK-NEXT
: >>> defined at duplicate.s
:15 (/tmp
{{/|
\\}}duplicate.s
:15)
7 // CHECK-NEXT
: >>>{{.*}}.o:(.text+0x{{.+}})
8 // CHECK
: /tmp
{{/|
\\}}duplicate.s
(15): error
: duplicate symbol
: foo
9 // CHECK-NEXT
: >>> defined at duplicate.s
:15 (/tmp
{{/|
\\}}duplicate.s
:15)
10 // CHECK-NEXT
: >>>{{.*}}.o:(.text+0x{{.+}})
12 .file 1 "/tmp" "duplicate.s"
20 .section .debug_abbrev,"",@progbits
21 .byte 1 # Abbreviation Code
22 .byte 17 # DW_TAG_compile_unit
23 .byte 0 # DW_CHILDREN_no
24 .byte 16 # DW_AT_stmt_list
25 .byte 23 # DW_FORM_sec_offset
30 .section .debug_info,"",@progbits
31 .long .Lend0 - .Lbegin0 # Length of Unit
33 .short 4 # DWARF version number
34 .long .debug_abbrev # Offset Into Abbrev. Section
35 .byte 8 # Address Size (in bytes)
36 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit
37 .long .debug_line # DW_AT_stmt_list
39 .section .debug_line,"",@progbits