| 1 | // RUN: %clang -target i386-apple-darwin9 -miphoneos-version-min=3.0 -arch armv7 -stdlib=platform -flto -S -o - %s | FileCheck %s |
| 2 | |
| 3 | // CHECK: @f0() [[F0:#[0-9]+]] |
| 4 | // CHECK: @__f0_block_invoke |
| 5 | // CHECK: void @f1 |
| 6 | // CHECK-NOT: msgSend_fixup_alloc |
| 7 | // CHECK: OBJC_SELECTOR_REFERENCES |
| 8 | |
| 9 | int f0() { |
| 10 | return ^(){ return 0; }(); |
| 11 | } |
| 12 | |
| 13 | @interface I0 |
| 14 | @property (assign) int p0; |
| 15 | @end |
| 16 | |
| 17 | @implementation I0 |
| 18 | @synthesize p0 = __sythesized_p0; |
| 19 | @end |
| 20 | |
| 21 | @interface I1 |
| 22 | +(id) alloc; |
| 23 | @end |
| 24 | |
| 25 | void f1() { |
| 26 | [I1 alloc]; |
| 27 | } |
| 28 | |
| 29 | // CHECK: attributes [[F0]] = { noinline optnone ssp{{.*}} } |
| 30 | |