1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s 2 3@interface I 4{ 5 A* response; // expected-error {{unknown type name 'A'}} 6} 7@end 8@interface I () 9@property A* response; // expected-error {{unknown type name 'A'}} 10@property int helper; 11@end 12@implementation I 13@synthesize response; 14- (void) foo :(A*) a // expected-error {{expected a type}} 15{ 16 self.response = a; 17} 18@end 19 20void foo(I *i) 21{ 22 i.helper; 23} 24