aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/blocks-2.m
blob: 4949b45cddeee008d0ad91818568c3302ca02600 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// 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;
}