repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git]
/
test
/
Sema
/
block-as-object.m
blob
a85b6067571eee6039fcc7d8b2692ef609b67f3c
1
// RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks
2
3
@interface Whatever
4
- copy;
5
@end
6
7
typedef long (^MyBlock)(id obj1, id obj2);
8
9
void foo(MyBlock b) {
10
id bar = [b copy];
11
}
12
13
void foo2(id b) {
14
}
15
16
void foo3(void (^block)(void)) {
17
foo2(block);
18
id x;
19
foo(x);
20
}