You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
430 B

; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
; This file makes sure that clang.arc.used is removed even if no other ARC
; interesting calls are in the module.
declare void @clang.arc.use(...) nounwind
; Kill calls to @clang.arc.use(...)
; CHECK-LABEL: define void @test0(
; CHECK-NOT: clang.arc.use
; CHECK: }
define void @test0(i8* %a, i8* %b) {
call void (...) @clang.arc.use(i8* %a, i8* %b) nounwind
ret void
}