summaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/mrr-autorelease.m
blob: 773fdbc96854c1a7b6781e06c7e5eeec77e91e89 (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-runtime=macosx-fragile-10.5 -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