2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
|
2009-11-08 09:45:36 +08:00
|
|
|
// RUN: grep "objc_assign_strongCast" %t | count 2
|
2010-05-20 07:07:54 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c++ %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
|
|
|
|
// RUN: grep "objc_assign_strongCast" %t | count 2
|
2009-05-23 10:49:02 +08:00
|
|
|
|
|
|
|
// This should generate a strong cast.
|
|
|
|
|
|
|
|
id test3(id x) {
|
|
|
|
__block id result;
|
|
|
|
^{ result = x; }();
|
|
|
|
return result;
|
|
|
|
}
|