xref: /llvm-project/clang/test/CodeGenObjC/mrr-autorelease.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2// RUN: %clang_cc1 -triple i386-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
3
4@interface I
5{
6  id ivar;
7}
8- (id) Meth;
9@end
10
11@implementation I
12- (id) Meth {
13   @autoreleasepool {
14   }
15  return 0;
16}
17@end
18
19// CHECK-NOT: call ptr @objc_getClass
20// CHECK: call ptr @objc_msgSend
21// CHECK: call ptr @objc_msgSend
22// CHECK: call void @objc_msgSend
23