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

18 lines
532 B
Plaintext

# REQUIRES: x86
# Verify that lld can handle multiple input files.
#
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t1.obj
# RUN: yaml2obj %p/Inputs/static-data1.obj.yaml > %t2.obj
# RUN: yaml2obj %p/Inputs/static-data2.obj.yaml > %t3.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main /opt:noref \
# RUN: -- %t1.obj %t2.obj %t3.obj
# RUN: llvm-objdump -d %t.exe | FileCheck %s
CHECK: Disassembly of section .text:
CHECK: .text:
CHECK: movl {{[0-9]+}}, %eax
CHECK: addl {{[0-9]+}}, %eax
CHECK: ret