Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaObjCXX / Inputs / nullability-consistency-5.h
blob30666c2eebba79f4e633210d04f6cb60d8868ee6
1 #define SUPPRESS_NULLABILITY_WARNING(Type) \
2 _Pragma("clang diagnostic push") \
3 _Pragma("clang diagnostic ignored \"-Wnullability-completeness\"") \
4 Type \
5 _Pragma("clang diagnostic pop")
7 void suppress1(SUPPRESS_NULLABILITY_WARNING(int *) ptr); // no warning
9 void shouldwarn5(int *ptr); //expected-warning{{missing a nullability type specifier}}
10 // expected-note@-1 {{insert '_Nullable' if the pointer may be null}}
11 // expected-note@-2 {{insert '_Nonnull' if the pointer should never be null}}
13 void trigger5(int * _Nonnull);
15 void suppress2(SUPPRESS_NULLABILITY_WARNING(int *) ptr); // no warning