101 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -triple=x86_64-windows-gnu -filetype=obj -o %t.o %s3# RUN: not lld-link /lldmingw /out:%t.exe %t.o /entry:entry 2>&1 | FileCheck %s4 5# CHECK: error: undefined symbol: bar()6# CHECK-NEXT: >>> referenced by /path/to/src{{[/\\]}}undef.cpp:177# CHECK-NEXT: >>> {{.*}}.o:(entry)8# CHECK-EMPTY:9# CHECK-NEXT: error: undefined symbol: foo()10# CHECK-NEXT: >>> referenced by /path/to/src{{[/\\]}}undef.cpp:711# CHECK-NEXT: >>> {{.*}}.o:(A::afunc())12 13 .text14 .file "undef.cpp"15 .file 1 "/path/to/src" "undef.cpp"16 .globl entry # -- Begin function entry17entry: # @entry18.Lfunc_begin0:19 .loc 1 14 0 # undef.cpp:14:020 subq $40, %rsp21.Ltmp0:22 leaq 32(%rsp), %rcx23.Ltmp1:24 .loc 1 16 4 prologue_end # undef.cpp:16:425 callq _ZN1A5afuncEv26 .loc 1 17 2 # undef.cpp:17:227 callq _Z3barv28 .loc 1 18 1 # undef.cpp:18:129 addq $40, %rsp30 retq31.Ltmp2:32.Lfunc_end0:33 34 .def _ZN1A5afuncEv;35 .scl 2;36 .type 32;37 .endef38 .section .text$_ZN1A5afuncEv,"xr",discard,_ZN1A5afuncEv39 .globl _ZN1A5afuncEv # -- Begin function _ZN1A5afuncEv40 .p2align 1, 0x9041_ZN1A5afuncEv: # @_ZN1A5afuncEv42.Lfunc_begin1:43 .loc 1 6 0 # undef.cpp:6:044 .loc 1 7 3 prologue_end # undef.cpp:7:345 jmp _Z3foov # TAILCALL46.Ltmp3:47.Lfunc_end1:48 49 .section .debug_abbrev,"dr"50.Lsection_abbrev:51 .byte 1 # Abbreviation Code52 .byte 17 # DW_TAG_compile_unit53 .byte 1 # DW_CHILDREN_yes54 .byte 37 # DW_AT_producer55 .byte 37 # DW_FORM_strx156 .byte 19 # DW_AT_language57 .byte 5 # DW_FORM_data258 .byte 3 # DW_AT_name59 .byte 37 # DW_FORM_strx160 .byte 16 # DW_AT_stmt_list61 .byte 23 # DW_FORM_sec_offset62 .byte 27 # DW_AT_comp_dir63 .byte 37 # DW_FORM_strx164 .byte 17 # DW_AT_low_pc65 .byte 1 # DW_FORM_addr66 .byte 85 # DW_AT_ranges67 .byte 23 # DW_FORM_sec_offset68 .byte 0 # EOM(1)69 .byte 0 # EOM(2)70 .byte 0 # EOM(3)71 .section .debug_info,"dr"72.Lsection_info:73.Lcu_begin0:74 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit75.Ldebug_info_start0:76 .short 4 # DWARF version number77 .secrel32 .Lsection_abbrev # Offset Into Abbrev. Section78 .byte 8 # Address Size (in bytes)79 .byte 1 # Abbrev [1] 0xb:0xb0 DW_TAG_compile_unit80 .byte 0 # DW_AT_producer81 .short 4 # DW_AT_language82 .byte 0 # DW_AT_name83 .secrel32 .Lline_table_start0 # DW_AT_stmt_list84 .byte 0 # DW_AT_comp_dir85 .quad 0 # DW_AT_low_pc86 .secrel32 .Ldebug_ranges0 # DW_AT_ranges87 .byte 0 # End Of Children Mark88.Ldebug_info_end0:89 .section .debug_ranges,"dr"90.Ldebug_range:91.Ldebug_ranges0:92 .quad .Lfunc_begin093 .quad .Lfunc_end094 .quad .Lfunc_begin195 .quad .Lfunc_end196 .quad 097 .quad 098 99 .section .debug_line,"dr"100.Lline_table_start0:101