diff options
Diffstat (limited to 'test/SemaObjCXX/Inputs/nullability-consistency-6.h')
-rw-r--r-- | test/SemaObjCXX/Inputs/nullability-consistency-6.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaObjCXX/Inputs/nullability-consistency-6.h b/test/SemaObjCXX/Inputs/nullability-consistency-6.h index cb712e9..d1764a8 100644 --- a/test/SemaObjCXX/Inputs/nullability-consistency-6.h +++ b/test/SemaObjCXX/Inputs/nullability-consistency-6.h @@ -4,5 +4,15 @@ int *ptr; // expected-warning {{missing a nullability type specifier}} extern void **blah; // expected-warning 2{{missing a nullability type specifier}} +__attribute__((objc_root_class)) +@interface ClassWithWeakProperties +@property (readonly, weak) ClassWithWeakProperties *prop1; +@property (readonly, weak, null_unspecified) ClassWithWeakProperties *prop2; +@end + +@interface ClassWithWeakProperties () +@property (readonly, weak) ClassWithWeakProperties *prop3; +@end + #pragma clang assume_nonnull end |