40 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o3// RUN: not ld.lld --vs-diagnostics --shared %t.o %t.o -o /dev/null 2>&1 | FileCheck %s4 5// CHECK: /tmp{{/|\\}}duplicate.s(15): error: duplicate symbol: foo6// 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: foo9// CHECK-NEXT: >>> defined at duplicate.s:15 (/tmp{{/|\\}}duplicate.s:15)10// CHECK-NEXT: >>>{{.*}}.o:(.text+0x{{.+}})11 12.file 1 "/tmp" "duplicate.s"13 14.global foo15.text16.loc 1 1517foo:18 nop19 20.section .debug_abbrev,"",@progbits21 .byte 1 # Abbreviation Code22 .byte 17 # DW_TAG_compile_unit23 .byte 0 # DW_CHILDREN_no24 .byte 16 # DW_AT_stmt_list25 .byte 23 # DW_FORM_sec_offset26 .byte 0 # EOM(1)27 .byte 0 # EOM(2)28 .byte 0 # EOM(3)29 30.section .debug_info,"",@progbits31 .long .Lend0 - .Lbegin0 # Length of Unit32.Lbegin0:33 .short 4 # DWARF version number34 .long .debug_abbrev # Offset Into Abbrev. Section35 .byte 8 # Address Size (in bytes)36 .byte 1 # Abbrev [1] 0xb:0x1f DW_TAG_compile_unit37 .long .debug_line # DW_AT_stmt_list38.Lend0:39 .section .debug_line,"",@progbits40