summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjCXX/Inputs/nullability-consistency-7.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjCXX/Inputs/nullability-consistency-7.h')
-rw-r--r--clang/test/SemaObjCXX/Inputs/nullability-consistency-7.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/Inputs/nullability-consistency-7.h b/clang/test/SemaObjCXX/Inputs/nullability-consistency-7.h
index ddbdfada799..ed61666e6e7 100644
--- a/clang/test/SemaObjCXX/Inputs/nullability-consistency-7.h
+++ b/clang/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
OpenPOWER on IntegriCloud