2 ; RUN: rm -rf %t; split-file %s %t
3 ; RUN: llvm-as %t/archive.ll -o %t/archive.o
4 ; RUN: llvm-ar rcs %t/archive.a %t/archive.o
5 ; RUN: llvm-as %t/obj.ll -o %t/obj.o
7 ; RUN: %lld -dylib -lSystem %t/obj.o -load_hidden %t/archive.a -o %t/test.dylib
8 ; RUN: llvm-nm %t/test.dylib | FileCheck %s
12 target triple = "x86_64-apple-macosx10.15.0"
13 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
15 define void @foo() noinline optnone {
20 target triple = "x86_64-apple-macosx10.15.0"
21 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"