| # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o |
| # RUN: ld.lld -e A %t.o -o %t |
| # RUN: llvm-nm --no-sort %t | FileCheck %s |
| # RUN: ld.lld --no-call-graph-profile-sort -e A %t.o -o %t |
| # RUN: llvm-nm --no-sort %t | FileCheck %s --check-prefix=NO-CG |
| .section .text.D,"ax",@progbits |
| .section .text.C,"ax",@progbits |
| .section .text.B,"ax",@progbits |
| .section .text.A,"ax",@progbits |
| # CHECK: 0000000000201123 t D |
| # CHECK: 0000000000201120 T A |
| # CHECK: 0000000000201121 T B |
| # CHECK: 0000000000201122 T C |
| # NO-CG: 0000000000201120 t D |
| # NO-CG: 0000000000201123 T A |
| # NO-CG: 0000000000201122 T B |
| # NO-CG: 0000000000201121 T C |