blob: a4d8bfa6b7fce2e0d1cbcf728ad3e55831fd9cfe [file] [log] [blame]
Daniel Dunbare2265342009-05-23 02:49:02 +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 &&
3// RUN: true
4
5// This should generate a strong cast.
6
7id test3(id x) {
8 __block id result;
9 ^{ result = x; }();
10 return result;
11}