blob: 62a9403900138f1698e4976f492f2ef4275d7896 [file] [log] [blame]
Daniel Dunbar2bb38d02010-07-15 16:18:06 +00001// RUN: %clang -ccc-host-triple i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -flto -S -o - %s | FileCheck %s
Daniel Dunbar5435fc92010-01-27 00:57:11 +00002
3// CHECK: @f0
4// CHECK-NOT: ssp
5// CHECK: ) {
6// CHECK: @__f0_block_invoke
Daniel Dunbar609508c2010-02-01 21:07:43 +00007// CHECK: void @f1
8// CHECK-NOT: msgSend_fixup_alloc
9// CHECK: OBJC_SELECTOR_REFERENCES
Daniel Dunbar5435fc92010-01-27 00:57:11 +000010
11int f0() {
12 return ^(){ return 0; }();
13}
14
15@interface I0
16@property (assign) int p0;
17@end
18
19@implementation I0
20@synthesize p0 = __sythesized_p0;
21@end
Daniel Dunbar609508c2010-02-01 21:07:43 +000022
23@interface I1
24+(id) alloc;
25@end
26
27void f1() {
28 [I1 alloc];
29}
30