Daniel Dunbar | 5435fc9 | 2010-01-27 00:57:11 +0000 | [diff] [blame] | 1 | // 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 Dunbar | 609508c | 2010-02-01 21:07:43 +0000 | [diff] [blame] | 7 | // CHECK: void @f1 |
| 8 | // CHECK-NOT: msgSend_fixup_alloc |
| 9 | // CHECK: OBJC_SELECTOR_REFERENCES |
Daniel Dunbar | 5435fc9 | 2010-01-27 00:57:11 +0000 | [diff] [blame] | 10 | |
| 11 | int 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 Dunbar | 609508c | 2010-02-01 21:07:43 +0000 | [diff] [blame] | 22 | |
| 23 | @interface I1 |
| 24 | +(id) alloc; |
| 25 | @end |
| 26 | |
| 27 | void f1() { |
| 28 | [I1 alloc]; |
| 29 | } |
| 30 | |