2012-01-21 06:01:23 +08:00
|
|
|
// RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -flto -S -o - %s | FileCheck %s
|
2010-01-27 08:57:11 +08:00
|
|
|
|
2013-02-26 03:51:03 +08:00
|
|
|
// CHECK: @f0() #0
|
2010-01-27 08:57:11 +08:00
|
|
|
// CHECK: @__f0_block_invoke
|
2010-02-02 05:07:43 +08:00
|
|
|
// CHECK: void @f1
|
|
|
|
// CHECK-NOT: msgSend_fixup_alloc
|
|
|
|
// CHECK: OBJC_SELECTOR_REFERENCES
|
2010-01-27 08:57:11 +08:00
|
|
|
|
|
|
|
int f0() {
|
|
|
|
return ^(){ return 0; }();
|
|
|
|
}
|
|
|
|
|
|
|
|
@interface I0
|
|
|
|
@property (assign) int p0;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation I0
|
|
|
|
@synthesize p0 = __sythesized_p0;
|
|
|
|
@end
|
2010-02-02 05:07:43 +08:00
|
|
|
|
|
|
|
@interface I1
|
|
|
|
+(id) alloc;
|
|
|
|
@end
|
|
|
|
|
|
|
|
void f1() {
|
|
|
|
[I1 alloc];
|
|
|
|
}
|
|
|
|
|
2013-02-27 08:06:04 +08:00
|
|
|
// CHECK: attributes #0 = { ssp{{.*}} }
|
2013-02-26 03:51:03 +08:00
|
|
|
// CHECK: attributes #1 = { nonlazybind }
|