1261a89b0SDouglas Gregor // RUN: %clang_cc1 -fblocks -Werror=nullability-declspec -verify %s 2261a89b0SDouglas Gregor 3261a89b0SDouglas Gregor struct X { }; 4261a89b0SDouglas Gregor 5*aea7afdcSDouglas Gregor _Nullable int *ip1; // expected-error{{nullability specifier '_Nullable' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the pointer?}} 6*aea7afdcSDouglas Gregor _Nullable int (*fp1)(int); // expected-error{{nullability specifier '_Nullable' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the function pointer?}} 7*aea7afdcSDouglas Gregor _Nonnull int (^bp1)(int); // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the block pointer?}} 8*aea7afdcSDouglas Gregor _Nonnull int X::*pmd1; // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the member pointer?}} 9*aea7afdcSDouglas Gregor _Nonnull int (X::*pmf1)(int); // expected-error{{nullability specifier '_Nonnull' cannot be applied to non-pointer type 'int'; did you mean to apply the specifier to the member function pointer?}} 10