llvm-project/lld/test/pecoff/lib.test

14 lines
415 B
Plaintext

# Verify that lld can handle a library file.
#
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main /opt:noref \
# RUN: -- %t.obj %p/Inputs/static.lib
# RUN: llvm-objdump -d %t.exe | FileCheck %s
CHECK: Disassembly of section .text:
CHECK-NEXT: .text:
CHECK-NEXT: movl 4198400, %eax
CHECK-NEXT: addl 4198404, %eax
CHECK-NEXT: ret