1 // RUN: %clang_cc1 -fsyntax-only -verify -Wselector-type-mismatch %s
3 __attribute__((objc_root_class))
5 @property() int dynamic_property;
6 @property(direct) int direct_property; // expected-note {{previous declaration is here}}
10 @dynamic dynamic_property;
11 @dynamic direct_property; // expected-error {{direct property cannot be @dynamic}}
15 @property() int dynamic_category_property;
16 @property(direct) int direct_category_property; // expected-note {{previous declaration is here}}
19 @implementation Foo (Bar)
20 @dynamic dynamic_category_property;
21 @dynamic direct_category_property; // expected-error {{direct property cannot be @dynamic}}