1# REQUIRES: x86 2 3# RUN: llvm-mc -triple=x86_64-win32 %s -filetype=obj -o %t.main.obj 4# RUN: llvm-mc -triple=x86_64-win32 %p/Inputs/otherFunc.s -filetype=obj -o %t.other.obj 5# RUN: llvm-ar rcs %t.other.lib %t.other.obj 6# RUN: not lld-link -out:%t.exe -entry:main %t.main.obj %p/Inputs/std64.lib %t.other.lib -opt:noref 2>&1 | FileCheck %s 7# CHECK: MessageBoxA was replaced 8 9.global main 10.text 11main: 12 callq MessageBoxA 13 callq ExitProcess 14 callq otherFunc 15 ret 16