3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
5 # RUN: echo "A B 100" > %t.call_graph
6 # RUN: echo "A C 40" >> %t.call_graph
7 # RUN: echo "B C 30" >> %t.call_graph
8 # RUN: echo "adena1 A 30" >> %t.call_graph
9 # RUN: echo "A adena2 30" >> %t.call_graph
10 # RUN: echo "poppy A 30" >> %t.call_graph
11 # RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o /dev/null \
12 # RUN: -noinhibit-exec -icf=all 2>&1 | FileCheck %s
14 .section .text.C,"ax",@progbits
22 .section .text.A,"ax",@progbits
28 # CHECK: unable to order absolute symbol: B
29 # CHECK: {{.*}}.call_graph: no such symbol: adena1
30 # CHECK: {{.*}}.call_graph: no such symbol: adena2
31 # CHECK: unable to order undefined symbol: poppy
33 # RUN: ld.lld %t --call-graph-ordering-file %t.call_graph -o /dev/null \
34 # RUN: -noinhibit-exec -icf=all --no-warn-symbol-ordering 2>&1 \
35 # RUN: | FileCheck %s --check-prefix=NOWARN
36 # NOWARN-NOT: unable to order