]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/pecoff/lib.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / pecoff / lib.test
1 # REQUIRES: x86
2
3 # Verify that lld can handle a library file.
4 #
5 # RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj
6 #
7 # RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:main /opt:noref \
8 # RUN:   -- %t.obj %p/Inputs/static.lib
9 # RUN: llvm-objdump -d %t.exe | FileCheck %s
10
11 CHECK:      Disassembly of section .text:
12 CHECK-NEXT: .text:
13 CHECK-NEXT:     movl 4198400, %eax
14 CHECK-NEXT:     addl 4198404, %eax
15 CHECK-NEXT:     ret