forked from OSchip/llvm-project
13 lines
458 B
Plaintext
13 lines
458 B
Plaintext
# Verify that lld can handle a library file.
|
|
#
|
|
# RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj
|
|
#
|
|
# RUN: lld -flavor link /out:%t1 /subsystem:console /entry:main /opt:noref \
|
|
# RUN: -- %t.obj %p/Inputs/static.lib && llvm-objdump -d %t1 | FileCheck %s
|
|
|
|
CHECK: Disassembly of section .text:
|
|
CHECK: .text:
|
|
CHECK: 1000: a1 04 20 40 00 movl 4202500, %eax
|
|
CHECK: 1005: 03 05 00 20 40 00 addl 4202496, %eax
|
|
CHECK: 100b: c3 ret
|