[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / vs-diagnostics-duplicate-split.s
blobb3b4eae1ce21069494b0ef065b93f12f15256638
1 // REQUIRES: x86
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"
14 .global foo
15 .text
16 .loc 1 15
17 foo:
18 nop
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
26 .byte 0 # EOM(1)
27 .byte 0 # EOM(2)
28 .byte 0 # EOM(3)
30 .section .debug_info,"",@progbits
31 .long .Lend0 - .Lbegin0 # Length of Unit
32 .Lbegin0:
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
38 .Lend0:
39 .section .debug_line,"",@progbits