Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
8b9ad38dab1b44b71ccbcb8f03fbf4339eb3110a
/
.
/
test
/
SemaObjC
/
block-ivar.m
blob: 422018359a888b719b3957efc2611ab7fb33edeb [
file
] [
log
] [
blame
]
// RUN: clang -fsyntax-only -verify %s -fblocks
@interface
NSObject
{
struct
objc_object
*
isa
;
}
@end
@interface
Foo
:
NSObject
{
int
_prop
;
}
@end
@implementation
Foo
-
(
int
)
doSomething
{
int
(^
blk
)(
void
)
=
^{
return
_prop
;
};
return
blk
();
}
@end