diff options
Diffstat (limited to 'test/SemaObjC/nonnull.m')
-rw-r--r-- | test/SemaObjC/nonnull.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaObjC/nonnull.m b/test/SemaObjC/nonnull.m index 642f50f..15fee74 100644 --- a/test/SemaObjC/nonnull.m +++ b/test/SemaObjC/nonnull.m @@ -43,3 +43,5 @@ foo (int i1, int i2, int i3, void (^cp1)(), void (^cp2)(), void (^cp3)()) func6((NSObject*) 0); // no-warning func7((NSObject*) 0); // no-warning } + +void func5(int) __attribute__((nonnull)); // expected-warning{{'nonnull' attribute applied to function with no pointer arguments}} |