llvm-project
27 строк · 632.0 Байт
1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %tobject.obj %S/Inputs/object.s
4# RUN: lld-link -dll -entry:f -out:%t.dll -implib:%t.lib %tobject.obj
5# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %tmain.obj %s
6# RUN: lld-link -entry:main -out:%t.exe -opt:ref -debug:dwarf %tmain.obj %t.lib
7# RUN: llvm-readobj --coff-imports %t.exe | FileCheck %s
8
9# CHECK-NOT: Symbol: f
10
11.def main;
12.scl 2;
13.type 32;
14.endef
15.section .text,"xr",one_only,main
16.globl main
17main:
18retq
19
20.def stripped;
21.scl 3;
22.type 32;
23.endef
24.section .text,"xr",one_only,stripped
25stripped:
26callq __imp_f
27retq
28