brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 7a3ed8d Raw
66 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -verify %s2 3@protocol P04@property(readonly,assign) id X;5@end6 7@protocol P18@property(readonly,retain) id X;9@end10 11@protocol P212@property(readonly,copy) id X;13@end14 15@protocol P316@property(readonly,readwrite) id X; // expected-error {{property attributes 'readonly' and 'readwrite' are mutually exclusive}}17@end18 19@protocol P420@property(assign,copy) id X; // expected-error {{property attributes 'assign' and 'copy' are mutually exclusive}}21@end22 23@protocol P524@property(assign,retain) id X; // expected-error {{property attributes 'assign' and 'retain' are mutually exclusive}}25@end26 27@protocol P628@property(copy,retain) id X; // expected-error {{property attributes 'copy' and 'retain' are mutually exclusive}}29@end30 31@interface I0 <P0> @end32@implementation I0 33@synthesize X;34@end35 36@interface I1 <P1> @end37@implementation I1 38@synthesize X;39@end40 41@interface I2 <P2> @end42@implementation I2 43@synthesize X;44@end45 46@interface I3 <P3> @end47@implementation I3 48@synthesize X;49@end50 51@interface I4 <P4> @end52@implementation I4 53@synthesize X;54@end55 56@interface I5 <P5> @end57@implementation I5 58@synthesize X;59@end60 61@interface I6 <P6> @end62@implementation I6 63@synthesize X;64@end65 66