24 lines · plain
1; REQUIRES: x862; RUN: rm -rf %t; split-file %s %t3 4; RUN: llvm-as %t/lib.ll -o %t/lib.o5; RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos -o %t/main.o %t/main.s6; RUN: llvm-ar rcST %t/lib.a %t/lib.o7; RUN: %lld %t/main.o %t/lib.a -o %t/out8 9;--- main.s10.global _main11_main:12 call _foo 13 mov $0, %rax14 ret15 16;--- lib.ll17target triple = "x86_64-apple-darwin"18target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"19 20define void @foo() {21entry:22 ret void23}24