27 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s2// expected-no-diagnostics3 4typedef struct objc_class *Class;5 6typedef struct objc_object {7 Class isa;8} *id;9 10@interface NSObject11+ (id) alloc;12@end13 14 15void foo(Class self) {16 [self alloc];17 (^() {18 [self alloc];19 })();20}21 22void bar(Class self) {23 Class y = self;24 [y alloc];25}26 27