blob: 97ac4a42a54b3664b3752aa1ef390b372d53a097 [file] [log] [blame]
Daniel Dunbar5435fc92010-01-27 00:57:11 +00001// RUN: %clang -ccc-host-triple i386-apple-darwin9 -arch armv7 -flto -S -o - %s | FileCheck %s
2
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