1 // RUN: %clang_cc1 -fobjc-arc -emit-llvm -triple x86_64-apple-darwin -o - %s | FileCheck %s
3 @interface NSMutableArray
4 - (id)objectAtIndexedSubscript:(int)index;
5 - (void)setObject:(id)object atIndexedSubscript:(int)index;
14 // CHECK: [[call:%.*]] = call ptr @objc_msgSend
15 // CHECK: [[SIX:%.*]] = notail call ptr @llvm.objc.retainAutoreleasedReturnValue(ptr [[call]]) [[NUW:#[0-9]+]]
16 // CHECK: call void @llvm.objc.storeStrong(ptr {{%.*}}, ptr null)
17 // CHECK: [[EIGHT:%.*]] = tail call ptr @llvm.objc.autoreleaseReturnValue(ptr [[SIX]]) [[NUW]]
18 // CHECK: ret ptr [[EIGHT]]
20 // CHECK: attributes [[NUW]] = { nounwind }