22 lines · c
1int *ptr; // expected-warning {{missing a nullability type specifier}}2// expected-note@-1{{insert '_Nullable' if the pointer may be null}}3// expected-note@-2{{insert '_Nonnull' if the pointer should never be null}}4#pragma clang assume_nonnull begin5 6extern void **blah; // expected-warning 2{{missing a nullability type specifier}}7// expected-note@-1 2 {{insert '_Nullable' if the pointer may be null}}8// expected-note@-2 2 {{insert '_Nonnull' if the pointer should never be null}}9 10__attribute__((objc_root_class))11@interface ClassWithWeakProperties12@property (readonly, weak) ClassWithWeakProperties *prop1;13@property (readonly, weak, null_unspecified) ClassWithWeakProperties *prop2;14@end15 16@interface ClassWithWeakProperties ()17@property (readonly, weak) ClassWithWeakProperties *prop3;18@end19 20#pragma clang assume_nonnull end21 22