3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
4 # RUN: ld.lld -e A %t.o -o %t
5 # RUN: llvm-nm --no-sort %t | FileCheck %s
6 # RUN: ld.lld --call-graph-profile-sort=none -e A %t.o -o %t
7 # RUN: llvm-nm --no-sort %t | FileCheck %s --check-prefix=NO-CG
8 ## --no-call-graph-profile-sort is an alias for --call-graph-profile-sort=none.
9 # RUN: ld.lld --no-call-graph-profile-sort -e A %t.o -o %t1
12 .section .text.D,"ax",@progbits
16 .section .text.C,"ax",@progbits
21 .section .text.B,"ax",@progbits
26 .section .text.A,"ax",@progbits
39 # CHECK: 0000000000201123 t D
40 # CHECK: 0000000000201122 T C
41 # CHECK: 0000000000201121 T B
42 # CHECK: 0000000000201120 T A
44 # NO-CG: 0000000000201120 t D
45 # NO-CG: 0000000000201121 T C
46 # NO-CG: 0000000000201122 T B
47 # NO-CG: 0000000000201123 T A