15 lines · plain
1# REQUIRES: x862# RUN: mkdir -p %t3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %p/Inputs/libhello.s -o %t/hello.o4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/main.o5# RUN: %lld -L %t %t/main.o -lhello.o -o %t/a.out6# RUN: llvm-nm %t/a.out | FileCheck %s7 8# CHECK: _main9# CHECK: _print_hello10 11.globl _main12_main:13 call _print_hello14 ret15