Debian Codegraph @

clang/test/ARCMT/block_copy_release.m

raw
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
7 typedef void (^blk)(int);
8
9 void func(blk b) {
10 blk c = Block_copy(b);
11 Block_release(c);
12 }
13
14 void func2(id b) {
15 id c = Block_copy(b);
16 Block_release(c);
17 }