]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/X86_64/undef.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / X86_64 / undef.test
1 # This tests the functionality that an undefined symbol thats defined in the
2 # commmand line pulls in the required object file from the archive library
3 # which is usually the usecase for it
4 RUN: lld -flavor gnu -target x86_64 -u fn %p/Inputs/libfn.a -o %t --noinhibit-exec
5 RUN: llvm-readobj -symbols %t | FileCheck -check-prefix=SYMFROMARCHIVE %s
6 RUN: lld -flavor gnu -target x86_64 %p/Inputs/libfn.a -o %t --noinhibit-exec
7 RUN: llvm-readobj -symbols %t | FileCheck %s
8
9 SYMFROMARCHIVE:  Symbol {
10 SYMFROMARCHIVE:    Name: fn ({{[0-9]+}}
11 SYMFROMARCHIVE:    Size: 11
12 SYMFROMARCHIVE:    Binding: Global (0x1)
13 SYMFROMARCHIVE:    Type: Function (0x2)
14 SYMFROMARCHIVE:    Other: 0
15 SYMFROMARCHIVE:    Section: .text
16 SYMFROMARCHIVE:  }
17
18 CHECK-NOT: Name: fn