2010-02-16 05:55:26 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2010-11-11 02:01:36 +08:00
|
|
|
// rdar://7629420
|
2010-02-16 05:55:26 +08:00
|
|
|
|
|
|
|
@interface Foo
|
2010-11-11 02:01:36 +08:00
|
|
|
@property (readonly) char foo;
|
2010-10-22 02:49:42 +08:00
|
|
|
@property (readwrite) char bar; // expected-note {{property declared here}}
|
2010-02-16 05:55:26 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Foo ()
|
2010-11-11 02:01:36 +08:00
|
|
|
@property (readwrite) char foo; // expected-note 2 {{property declared here}}
|
2010-06-23 07:20:40 +08:00
|
|
|
@property (readwrite) char NewProperty; // expected-note 2 {{property declared here}}
|
2012-05-19 05:22:49 +08:00
|
|
|
@property (readwrite) char bar; // expected-error{{illegal redeclaration of 'readwrite' property in class extension 'Foo' (perhaps you intended this to be a 'readwrite' redeclaration of a 'readonly' public property?)}}
|
2010-02-16 05:55:26 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface Foo ()
|
2010-11-11 02:01:36 +08:00
|
|
|
@property (readwrite) char foo; // expected-error {{property has a previous declaration}}
|
|
|
|
@property (readwrite) char NewProperty; // expected-error {{property has a previous declaration}}
|
2010-02-16 05:55:26 +08:00
|
|
|
@end
|
2010-06-23 07:20:40 +08:00
|
|
|
|
|
|
|
@interface Foo ()
|
2010-11-11 02:01:36 +08:00
|
|
|
@property (readonly) char foo; // expected-error {{property has a previous declaration}}
|
|
|
|
@property (readwrite) char NewProperty; // expected-error {{property has a previous declaration}}
|
2010-06-23 07:20:40 +08:00
|
|
|
@end
|
|
|
|
|