2016-03-14 22:34:10 +08:00
|
|
|
// RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -stdlib=platform -flto -S -o - %s | FileCheck %s
|
2010-01-27 08:57:11 +08:00
|
|
|
|
2013-03-01 06:49:57 +08:00
|
|
|
// CHECK: @f0() [[F0:#[0-9]+]]
|
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];
|
|
|
|
}
|
|
|
|
|
2017-05-29 13:38:20 +08:00
|
|
|
// CHECK: attributes [[F0]] = { noinline optnone ssp{{.*}} }
|