Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
f6cde77d7bc34bbee26b086ff192637af8e9da59
/
.
/
test
/
CodeGenObjC
/
blocks-2.m
blob: 15160cc52b0631452a8f074d65abf21b217c7f3c [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 %s -emit-llvm -o %t -fobjc-gc -fblocks -triple i386-apple-darwin10
// RUN: grep "objc_assign_strongCast" %t | count 2
// This should generate a strong cast.
id test3
(
id x
)
{
__block id result
;
^{
result
=
x
;
}();
return
result
;
}