[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / cgprofile-warn.s
blobbfb89c4c3b5745d7948b1541feda197886b3c5ee
1 # REQUIRES: x86
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
15 .globl C
17 mov poppy, %rax
18 retq
20 B = 0x1234
22 .section .text.A,"ax",@progbits
23 .globl A
25 mov poppy, %rax
26 retq
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