diff options
Diffstat (limited to 'gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm')
-rw-r--r-- | gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm b/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm index c554894..58b8f36 100644 --- a/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm +++ b/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm @@ -18,7 +18,7 @@ + (void) insertObject: (id)object atIndex: (size_t)index andObject: (id)anotherObject atIndex: (size_t)anotherIndex __attribute__ ((nonnull (1, 3))); - (void) insertObject: (id)object atIndex: (size_t)index andObject: (id)anotherObject atIndex: (size_t)anotherIndex __attribute__ ((nonnull (1, 3))); -/* Test the behaviour with invalid code. */ +/* Test the behavior with invalid code. */ + (void) removeObject: (id)object __attribute__ ((nonnull (0))); /* { dg-error "out-of-range" } */ - (void) removeObject: (id)object __attribute__ ((nonnull (0))); /* { dg-error "out-of-range" } */ |