1# REQUIRES: x86 2 3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t 4# RUN: %lld -e A %t -o %t2 --print-symbol-order=%t3 5# RUN: FileCheck %s --input-file %t3 6 7# CHECK: B 8# CHECK-NEXT: C 9# CHECK-NEXT: D 10# CHECK-NEXT: A 11 12.text 13.globl A 14A: 15 nop 16 17.globl B 18B: 19 nop 20 21.globl C 22C: 23 nop 24 25.globl D 26D: 27 nop 28 29.subsections_via_symbols 30 31.cg_profile A, B, 5 32.cg_profile B, C, 50 33.cg_profile C, D, 40 34.cg_profile D, B, 10 35