xref: /llvm-project-15.0.7/lld/test/COFF/thunk-replace.s (revision 45b8a741)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: env LLD_IN_TEST=1 not lld-link -out:%t.exe -entry:main %t.main.obj \
7# RUN:     %p/Inputs/std64.lib %t.other.lib -opt:noref 2>&1 | FileCheck %s
8# CHECK: MessageBoxA was replaced
9
10.global main
11.text
12main:
13  callq MessageBoxA
14  callq ExitProcess
15  callq otherFunc
16  ret
17

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026