llvm/lld/test/COFF/import_weak_alias.test

# REQUIRES: x86

# RUN: split-file %s %t.dir
# RUN: llvm-mc --filetype=obj -triple=x86_64-windows-msvc %t.dir/foo.s -o %t.foo.obj
# RUN: llvm-mc --filetype=obj -triple=x86_64-windows-msvc %t.dir/qux.s -o %t.qux.obj
# RUN: lld-link %t.qux.obj %t.foo.obj -out:%t.dll -dll
#
#--- foo.s
.text
bar:
  ret

.weak foo
.set foo, bar
#--- qux.s
.text
.global _DllMainCRTStartup
_DllMainCRTStartup:
  call *__imp_foo(%rip)
  ret