1 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fsyntax-only -verify -Wno-objc-root-class %s
4 @property (nonatomic, retain) id newName __attribute__((ns_returns_not_retained)) ;
6 @property (nonatomic, retain) id newName1 __attribute__((ns_returns_not_retained)) ;
7 - (id) newName1 __attribute__((ns_returns_not_retained));
9 @property (nonatomic, retain) id newName2 __attribute__((ns_returns_not_retained)); // expected-note {{roperty declared here}}
10 - (id) newName2; // expected-warning {{property declared as returning non-retained objects; getter returning retained objects}}
17 - (id) newName1 { return 0; }