Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaObjC/arc-unsafe_unretained.m @ 180:680fa57a2f20
fix compile errors.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 May 2020 17:44:06 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks %s // RUN: %clang_cc1 -fsyntax-only -verify -fblocks -fobjc-arc %s // expected-no-diagnostics struct X { __unsafe_unretained id object; int (^ __unsafe_unretained block)(int, int); }; void f(struct X x) { x.object = 0; x.block = ^(int x, int y) { return x + y; }; }