Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
570585c91dee98d7ba8ccf1198c03208ba17966b
/
.
/
test
/
Sema
/
block-as-object.m
blob: 28f8d775d0c8e44bb590b9f5095b045cad78758a [
file
] [
log
] [
blame
]
// RUN: clang %s -fsyntax-only -verify -fblocks
@interface
Whatever
-
copy
;
@end
typedef
long
(^
MyBlock
)(
id obj1
,
id obj2
);
void
foo
(
MyBlock
b
)
{
id bar
=
[
b copy
];
}
void
foo2
(
id b
)
{
}
void
foo3
(
void
(^
block
)(
void
))
{
foo2
(
block
);
id x
;
foo
(
x
);
}