mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
11 lines
274 B
Objective-C
11 lines
274 B
Objective-C
// RUN: clang-cc %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10 &&
|
|
// RUN: grep "objc_assign_strongCast" %t | count 2 &&
|
|
// RUN: true
|
|
|
|
// This should generate a strong cast.
|
|
|
|
id test3(id x) {
|
|
__block id result;
|
|
^{ result = x; }();
|
|
return result;
|
|
}
|