llvm-project/lld/test/elf/X86_64/layoutpass-order.test

15 lines
500 B
Plaintext

# This test checks that we follow the command line order of layouting
# symbols in the output file
RUN: lld -flavor gnu -target x86_64 %p/Inputs/layoutpass/1.o \
RUN: %p/Inputs/layoutpass/lib2.a %p/Inputs/layoutpass/3.o -o %t \
RUN: --noinhibit-exec -static
RUN: llvm-nm -n %t | FileCheck -check-prefix=SYMBOLSORDER %s
SYMBOLSORDER: {{[A-Fa-f0-9]+}} T main
SYMBOLSORDER: {{[A-Fa-f0-9]+}} T b
SYMBOLSORDER: {{[A-Fa-f0-9]+}} T a
SYMBOLSORDER: {{[A-Fa-f0-9]+}} T c
SYMBOLSORDER: {{[A-Fa-f0-9]+}} T d