llvm-project
15 строк · 337.0 Байт
1// RUN: %clang_cc1 -fblocks -fsyntax-only -fobjc-arc -x objective-c %s.result
2// RUN: arcmt-test --args -triple x86_64-apple-darwin10 -fblocks -fsyntax-only -x objective-c %s > %t
3// RUN: diff %t %s.result
4
5#include "Common.h"
6
7typedef void (^blk)(int);
8
9void func(blk b) {
10blk c = [b copy];
11}
12
13void func2(id b) {
14id c = [b copy];
15}
16