diff options
Diffstat (limited to 'test/SemaObjCXX/Inputs/nullability-consistency-7.h')
| -rw-r--r-- | test/SemaObjCXX/Inputs/nullability-consistency-7.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjCXX/Inputs/nullability-consistency-7.h b/test/SemaObjCXX/Inputs/nullability-consistency-7.h index ddbdfada7991..ed61666e6e74 100644 --- a/test/SemaObjCXX/Inputs/nullability-consistency-7.h +++ b/test/SemaObjCXX/Inputs/nullability-consistency-7.h @@ -33,7 +33,11 @@ __attribute__((unavailable("just don't"))) @interface C : A - (instancetype)init; // expected-warning{{pointer is missing a nullability type specifier}} +// expected-note@-1{{insert '_Nullable' if the pointer may be null}} +// expected-note@-2{{insert '_Nonnull' if the pointer should never be null}} - (instancetype)initWithA:( A*)a __attribute__((objc_designated_initializer)); // expected-warning 2{{pointer is missing a nullability type specifier}} +// expected-note@-1 2{{insert '_Nullable' if the pointer may be null}} +// expected-note@-2 2{{insert '_Nonnull' if the pointer should never be null}} @end #endif |
