Revert "CodeGen][NewPM] Port MachineScheduler to NPM. (#125703)" (#126268)
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / x86-64 / MachO_weak_local.s
blobfaedeb639a2498a007f4973e128d4c89d482260a
1 # RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %s
2 # RUN: llvm-jitlink -noexec %t -show-graphs='.*' | FileCheck %s
4 # CHECK: linkage: weak, scope: local, live - _foo_weak
6 # _foo_weak is weak and local. Make sure we can link it.
7 .section __TEXT,__text,regular,pure_instructions
8 .weak_definition _foo_weak
9 .p2align 4, 0x90
10 _foo_weak:
11 retq
13 .globl _main
14 .p2align 4, 0x90
15 _main:
16 jmp _foo_weak
18 .subsections_via_symbols