summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/mrr-autorelease.m
blob: f7a13fd8dcf2199529ec97b8b119e490bd4c7f21 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple i386-apple-darwin10 -fobjc-fragile-abi -emit-llvm -o - %s | FileCheck %s
// rdar://8881826
// rdar://9423507

@interface I
{
  id ivar;
}
- (id) Meth;
@end

@implementation I
- (id) Meth {
   @autoreleasepool {
   }
  return 0;
}
@end

// CHECK-NOT: call i8* @objc_getClass
// CHECK: call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend
// CHECK: call i8* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend
// CHECK: call void bitcast (i8* (i8*, i8*, ...)* @objc_msgSend