1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
5 @property (nonatomic, retain) NSString* what; // expected-error {{unknown type name 'NSString'}} \
6 // expected-error {{property with}} \
7 // expected-note {{previous definition is here}}
11 - (void) setWhat: (NSString*) value { // expected-error {{expected a type}} \
12 // expected-warning {{conflicting parameter types in implementation of}}
13 __what; // expected-error {{use of undeclared identifier}} \
14 // expected-warning {{expression result unused}}
16 @synthesize what; // expected-note {{'what' declared here}}
19 @implementation Bar // expected-warning {{cannot find interface declaration for}}
20 - (NSString*) what { // expected-error {{expected a type}}
21 return __what; // expected-error {{use of undeclared identifier}}