blob: ae3b82660a8e43e7dfa8fbe18b22c164eb9c4fe4 [file] [log] [blame]
Argyrios Kyrtzidis5d2faa42013-01-03 03:17:17 +00001// 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) {
10 blk c = Block_copy(b);
11 Block_release(c);
12}
13
14void func2(id b) {
15 id c = Block_copy(b);
16 Block_release(c);
17}