2013-03-07 05:59:27 +08:00
|
|
|
# Test for weak symbol getting overridden
|
2013-04-05 02:59:24 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o \
|
|
|
|
RUN: %p/Inputs/multi-ovrd.o -o %t -e main --noinhibit-exec
|
2013-03-07 05:59:27 +08:00
|
|
|
RUN: llvm-nm -n %t | FileCheck -check-prefix=WEAKORDER %s
|
2013-04-05 02:59:24 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/multi-weak.o \
|
2013-09-23 12:24:15 +08:00
|
|
|
RUN: %p/Inputs/multi-ovrd.o --output-filetype=yaml -o %t2 --noinhibit-exec
|
2013-03-07 05:59:27 +08:00
|
|
|
RUN: FileCheck -check-prefix=WEAKATOMSORDER %s < %t2
|
|
|
|
|
2013-05-11 00:44:02 +08:00
|
|
|
WEAKORDER: {{[0-9a-f]+}} T f
|
|
|
|
WEAKORDER: {{[0-9a-f]+}} T g
|
2013-03-07 05:59:27 +08:00
|
|
|
|
2013-05-02 03:36:38 +08:00
|
|
|
WEAKATOMSORDER: - ref-name: {{[A-Z0-9]+}}
|
|
|
|
WEAKATOMSORDER: - ref-name: {{[A-Z0-9]+}}
|
2013-03-07 05:59:27 +08:00
|
|
|
WEAKATOMSORDER: - name: f
|
|
|
|
WEAKATOMSORDER: - name: g
|
2013-04-05 02:59:24 +08:00
|
|
|
|