35 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-win32 %s -o %t4# RUN: echo "A B 5" > %t.call_graph5# RUN: echo "B C 50" >> %t.call_graph6# RUN: echo "C D 40" >> %t.call_graph7# RUN: echo "D B 10" >> %t.call_graph8# RUN: lld-link /subsystem:console /entry:A %t /call-graph-ordering-file:%t.call_graph /out:%t2 /print-symbol-order:%t39# RUN: FileCheck %s --input-file %t310 11# CHECK: B12# CHECK-NEXT: C13# CHECK-NEXT: D14# CHECK-NEXT: A15 16.section .text, "x", one_only, A17.globl A18A:19 nop20 21.section .text, "x", one_only, B22.globl B23B:24 nop25 26.section .text, "x", one_only, C27.globl C28C:29 nop30 31.section .text, "x", one_only, D32.globl D33D:34 nop35