xref: /minix3/external/bsd/llvm/dist/llvm/test/Transforms/ObjCARC/intrinsic-use-isolated.ll (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
2
3; This file makes sure that clang.arc.used is removed even if no other ARC
4; interesting calls are in the module.
5
6declare void @clang.arc.use(...) nounwind
7
8; Kill calls to @clang.arc.use(...)
9; CHECK-LABEL: define void @test0(
10; CHECK-NOT: clang.arc.use
11; CHECK: }
12define void @test0(i8* %a, i8* %b) {
13  call void (...)* @clang.arc.use(i8* %a, i8* %b) nounwind
14  ret void
15}
16
17