2015-06-20 07:17:55 +08:00
|
|
|
// Simply marking this as "#pragma clang system_header" didn't tickle the bug, rdar://problem/21134250.
|
|
|
|
|
|
|
|
void system1(int *ptr);
|
|
|
|
#if WARN_IN_SYSTEM_HEADERS
|
|
|
|
// expected-warning@-2{{pointer is missing a nullability type specifier}}
|
2016-12-20 04:58:20 +08:00
|
|
|
// expected-note@-3 {{insert '_Nullable' if the pointer may be null}}
|
|
|
|
// expected-note@-4 {{insert '_Nonnull' if the pointer should never be null}}
|
2015-06-20 07:17:55 +08:00
|
|
|
#endif
|
|
|
|
|
2015-06-25 06:02:08 +08:00
|
|
|
void system2(int * _Nonnull);
|