blob: bb7af99416f35d2e47b32a56a0dd29147a983312 [file] [log] [blame]
Daniel Dunbar4fcfde42009-11-08 01:45:36 +00001// RUN: clang-cc %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
2// RUN: grep "objc_assign_strongCast" %t | count 2
Daniel Dunbare2265342009-05-23 02:49:02 +00003
4// This should generate a strong cast.
5
6id test3(id x) {
7 __block id result;
8 ^{ result = x; }();
9 return result;
10}