| Fariborz Jahanian | 4ee3981 | 2009-12-14 17:13:18 +0000 | [diff] [blame] | 1 | // RUN: clang -cc1 %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10 |
| Daniel Dunbar | 8b57697 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 2 | // RUN: grep "objc_assign_strongCast" %t | count 2 |
| Daniel Dunbar | 223db1c | 2009-05-23 02:49:02 +0000 | [diff] [blame] | 3 | |
| 4 | // This should generate a strong cast. | ||||
| 5 | |||||
| 6 | id test3(id x) { | ||||
| 7 | __block id result; | ||||
| 8 | ^{ result = x; }(); | ||||
| 9 | return result; | ||||
| 10 | } | ||||