repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
block-ivar.m
blob
5864b6350120d54395171cec052a0783d873a4c2
1
// RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks
2
// expected-no-diagnostics
3
4
@interface NSObject {
5
struct objc_object *isa;
6
}
7
@end
8
@interface Foo : NSObject {
9
int _prop;
10
}
11
@end
12
13
@implementation Foo
14
- (int)doSomething {
15
int (^blk)(void) = ^{ return _prop; };
16
return blk();
17
}
18
19
@end
20