diff options
Diffstat (limited to 'test/SemaObjCXX/Inputs/nullability-consistency-system/nullability-consistency-system.h')
-rw-r--r-- | test/SemaObjCXX/Inputs/nullability-consistency-system/nullability-consistency-system.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaObjCXX/Inputs/nullability-consistency-system/nullability-consistency-system.h b/test/SemaObjCXX/Inputs/nullability-consistency-system/nullability-consistency-system.h new file mode 100644 index 0000000..6dbca16 --- /dev/null +++ b/test/SemaObjCXX/Inputs/nullability-consistency-system/nullability-consistency-system.h @@ -0,0 +1,8 @@ +// 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}} +#endif + +void system2(int * __nonnull); |