1*67e74705SXin Li// RUN: %clang_cc1 -fobjc-gc -fsyntax-only -verify %s 2*67e74705SXin Li// RUN: %clang_cc1 -x objective-c++ -fobjc-gc -fsyntax-only -verify %s 3*67e74705SXin Li 4*67e74705SXin Li@protocol NSCopying @end 5*67e74705SXin Li 6*67e74705SXin Li@interface NSObject <NSCopying> 7*67e74705SXin Li@end 8*67e74705SXin Li 9*67e74705SXin Li@interface NSDictionary : NSObject 10*67e74705SXin Li@end 11*67e74705SXin Li 12*67e74705SXin Li@interface INTF 13*67e74705SXin Li @property NSDictionary* undoAction; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}} // expected-warning {{default assign attribute on property 'undoAction' which implements NSCopying protocol is not appropriate with}} 14*67e74705SXin Li @property id okAction; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}} 15*67e74705SXin Li@end 16*67e74705SXin Li 17