opnsense-src/test/CodeGenObjC/blocks-2.m

11 lines
257 B
Mathematica
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
2009-11-18 09:59:57 -05:00
// RUN: grep "objc_assign_strongCast" %t | count 2
2009-06-02 13:58:47 -04:00
// This should generate a strong cast.
id test3(id x) {
__block id result;
^{ result = x; }();
return result;
}