forked from OSchip/llvm-project
17 lines
653 B
Plaintext
17 lines
653 B
Plaintext
# Test for weak symbol getting overridden
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o \
|
|
RUN: %p/Inputs/multi-ovrd.o -o %t -e main --noinhibit-exec
|
|
RUN: llvm-nm -n %t | FileCheck -check-prefix=WEAKORDER %s
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o \
|
|
RUN: %p/Inputs/multi-ovrd.o --output-filetype=yaml -o %t2 --noinhibit-exec
|
|
RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2
|
|
|
|
WEAKORDER: {{[0-9a-f]+}} T f
|
|
WEAKORDER: {{[0-9a-f]+}} T g
|
|
|
|
WEAKATOMSORDER: - ref-name: {{[A-Z0-9]+}}
|
|
WEAKATOMSORDER: - ref-name: {{[A-Z0-9]+}}
|
|
WEAKATOMSORDER: - name: f
|
|
WEAKATOMSORDER: - name: g
|
|
|