Changeset View
Changeset View
Standalone View
Standalone View
test/ELF/vs-diag-undef3.s
- This file was added.
1 | // REQUIRES: x86 | ||||
---|---|---|---|---|---|
2 | // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o | ||||
3 | // RUN: not ld.lld --vs-diagnostics %t1.o -o %tout 2>&1 \ | ||||
4 | // RUN: | FileCheck -check-prefix=ERR -check-prefix=CHECK %s | ||||
5 | // RUN: ld.lld --vs-diagnostics --warn-unresolved-symbols %t1.o -o %tout 2>&1 \ | ||||
6 | // RUN: | FileCheck -check-prefix=WARN -check-prefix=CHECK %s | ||||
7 | | ||||
8 | // ERR: undef3.s(15): error: undefined symbol: foo | ||||
9 | // WARN: undef3.s(15): warning: undefined symbol: foo | ||||
10 | // CHECK-NEXT: >>> referenced by {{.*}}1.o:(.text+0x{{.+}}) | ||||
11 | | ||||
12 | .file 1 "undef3.s" | ||||
13 | | ||||
14 | .global _start, foo | ||||
15 | .text | ||||
16 | _start: | ||||
17 | .loc 1 15 | ||||
18 | jmp foo | ||||
19 | | ||||
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) | ||||
29 | | ||||
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 |