37 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj4# RUN: lld-link -lldmingw -lldmap:%t.map -out:%t.exe -opt:ref -entry:main %t.obj -verbose 2>&1 | FileCheck %s5# RUN: FileCheck %s --check-prefix=MAP --input-file=%t.map6 7# CHECK: Discarded _unused8 9# MAP: In Symbol10# MAP: gc-dwarf-eh.s.tmp.obj:(.text)11# MAP: {{ ___gxx_personality_v0$}}12 13 .def _main; .scl 2; .type 32; .endef14 .section .text,"xr",one_only,_main15 .globl _main16_main:17 .cfi_startproc18 .cfi_personality 0, ___gxx_personality_v019 xorl %eax, %eax20 ret21 .cfi_endproc22 23 .def ___gxx_personality_v0; .scl 2; .type 32; .endef24 .section .text,"xr",one_only,___gxx_personality_v025 .globl ___gxx_personality_v026___gxx_personality_v0:27 ret28 29 .def _unused; .scl 2; .type 32; .endef30 .section .text,"xr",one_only,_unused31 .globl _unused32_unused:33 .cfi_startproc34 .cfi_personality 0, ___gxx_personality_v035 ret36 .cfi_endproc37