1# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj -o %t %s 2# RUN: llvm-jitlink -noexec %t -show-graph | FileCheck %s 3 4# CHECK: linkage: weak, scope: local, live - _foo_weak 5 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 12 13 .globl _main 14 .p2align 4, 0x90 15_main: 16 jmp _foo_weak 17