3 ;; Verify that we run the ObjCARCContractPass during LTO. Without that, the
4 ;; objc.clang.arc.use intrinsic will get passed to the instruction selector,
5 ;; which doesn't know how to handle it.
7 ; RUN: llvm-as %s -o %t.o
8 ; RUN: %lld -dylib -lSystem %t.o -o %t
9 ; RUN: llvm-objdump -d %t | FileCheck %s
11 ; RUN: opt -module-summary %s -o %t.o
12 ; RUN: %lld -dylib -lSystem %t.o -o %t
13 ; RUN: llvm-objdump -d %t | FileCheck %s
18 target triple = "x86_64-apple-darwin"
19 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
21 define void @foo(ptr %a, ptr %b) {
22 call void (...) @llvm.objc.clang.arc.use(ptr %a, ptr %b) nounwind
26 declare void @llvm.objc.clang.arc.use(...) nounwind