27 lines · plain
1# REQUIRES: x862 3# Pulling in on both a dllimport symbol and a static symbol should only warn.4# RUN: split-file %s %t.dir5# RUN: llvm-mc --filetype=obj -triple=x86_64-windows-msvc %t.dir/other.s -o %t.other.obj6# RUN: llvm-mc --filetype=obj -triple=x86_64-windows-msvc %t.dir/main.s -o %t.main.obj7# RUN: llvm-lib %t.other.obj -out:%t.other.lib8# RUN: lld-link %t.other.lib %t.main.obj -out:%t.dll -dll 2>&1 | FileCheck %s9 10CHECK: warning: {{.*}} locally defined symbol imported: foo {{.*}} [LNK4217]11 12#--- other.s13.text14.globl other15.globl foo16other:17 ret18foo:19 ret20#--- main.s21.text22.global _DllMainCRTStartup23_DllMainCRTStartup:24 call *other(%rip)25 call *__imp_foo(%rip)26 ret27