aboutsummaryrefslogtreecommitdiff
path: root/test/elf/X86_64/layoutpass-order.test
blob: e4ebef1d52db0d496c33d80a29f6802948b2d4c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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