brintos

brintos / llvm-project-archived public Read only

0
0
Text · 801 B · d8a4fdb Raw
31 lines · plain
1// REQUIRES: x862// RUN: split-file %s %t.dir3// RUN: llvm-mc -filetype=obj -triple=x86_64-win32-gnu %t.dir/main.s -o %t.main.obj4// RUN: llvm-mc -filetype=obj -triple=x86_64-win32-gnu %t.dir/wrap.s -o %t.wrap.obj5// RUN: llvm-mc -filetype=obj -triple=x86_64-win32-gnu %t.dir/other.s -o %t.other.obj6// RUN: rm -f %t.lib7// RUN: llvm-ar rcs %t.lib %t.wrap.obj %t.other.obj8 9// RUN: mkdir -p %t.dir10// RUN: lld-link -out:%t.exe %t.main.obj -libpath:%t.dir %t.lib -entry:entry -subsystem:console -wrap:foo11 12// Note: No real definition of foo exists here, but that works fine as long13// as there's no actual references to __real_foo.14 15#--- main.s16.global entry17entry:18  call foo19  ret20 21#--- wrap.s22.global __wrap_foo23__wrap_foo:24  call other_func25  ret26 27#--- other.s28.global other_func29other_func:30  ret31