brintos

brintos / llvm-project-archived public Read only

0
0
Text · 293 B · 5864b63 Raw
21 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks2// expected-no-diagnostics3 4@interface NSObject {5  struct objc_object *isa;6}7@end8@interface Foo : NSObject {9  int _prop;10}11@end12 13@implementation Foo14- (int)doSomething {15  int (^blk)(void) = ^{ return _prop; };16  return blk();17}18 19@end20 21