[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / lld / test / COFF / cgprofile-txt.s
blob49cade9dc52de04089a219969ca34262db9ca71d
1 # REQUIRES: x86
2 # Test correctness of call graph ordering.
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %s -o %t
5 # RUN: lld-link /subsystem:console /entry:A %t /out:%t2 /debug:symtab
6 # RUN: llvm-nm --numeric-sort %t2 | FileCheck %s --check-prefix=NOSORT
8 # RUN: echo "A B 5" > %t.call_graph
9 # RUN: echo "B C 50" >> %t.call_graph
10 # RUN: echo "C D 40" >> %t.call_graph
11 # RUN: echo "D B 10" >> %t.call_graph
12 # RUN: lld-link /subsystem:console /entry:A %t /call-graph-ordering-file:%t.call_graph /out:%t2 /debug:symtab
13 # RUN: llvm-nm --numeric-sort %t2 | FileCheck %s
15 # NOSORT: 140001000 T A
16 # NOSORT: 140001001 T B
17 # NOSORT: 140001002 T C
18 # NOSORT: 140001003 T D
20 # CHECK: 140001000 T B
21 # CHECK: 140001001 T C
22 # CHECK: 140001002 T D
23 # CHECK: 140001003 T A
25 .section .text, "x", one_only, A
26 .globl A
28 nop
30 .section .text, "x", one_only, B
31 .globl B
33 nop
35 .section .text, "x", one_only, C
36 .globl C
38 nop
40 .section .text, "x", one_only, D
41 .globl D
43 nop