1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fobjc-gc -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -fobjc-gc -fsyntax-only -verify %s 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc@protocol NSCopying @end 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc@interface NSObject <NSCopying> 7*f4a2713aSLionel Sambuc@end 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc@interface NSDictionary : NSObject 10*f4a2713aSLionel Sambuc@end 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc@interface INTF 13*f4a2713aSLionel Sambuc @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*f4a2713aSLionel Sambuc @property id okAction; // expected-warning {{no 'assign', 'retain', or 'copy' attribute is specified - 'assign' is assumed}} 15*f4a2713aSLionel Sambuc@end 16*f4a2713aSLionel Sambuc 17