mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-14 05:20:25 +08:00
re PR testsuite/88090 (obj-c++.dg/attributes/method-nonnull-1.mm FAILs)
PR testsuite/88090 * obj-c++.dg/attributes/method-nonnull-1.mm (my_size_t): New typedef. (MyArray::removeObjectAtIndex): Use my_size_t instead of size_t and expect it in diagnostics. From-SVN: r266486
This commit is contained in:
parent
14fac4364c
commit
60d4173b75
@ -1,5 +1,10 @@
|
||||
2018-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR testsuite/88090
|
||||
* obj-c++.dg/attributes/method-nonnull-1.mm (my_size_t): New typedef.
|
||||
(MyArray::removeObjectAtIndex): Use my_size_t instead of size_t and
|
||||
expect it in diagnostics.
|
||||
|
||||
PR c++/86900
|
||||
* g++.dg/debug/dwarf2/pr86900.C: New test.
|
||||
|
||||
|
@ -5,6 +5,8 @@
|
||||
#include <objc/objc.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef __SIZE_TYPE__ my_size_t;
|
||||
|
||||
@interface MyArray
|
||||
{
|
||||
Class isa;
|
||||
@ -25,8 +27,8 @@
|
||||
+ (void) removeObject: (id)object __attribute__ ((nonnull (2))); /* { dg-warning "exceeds the number of function parameters 3" } */
|
||||
- (void) removeObject: (id)object __attribute__ ((nonnull (2))); /* { dg-warning "exceeds the number of function parameters 3" } */
|
||||
|
||||
+ (void) removeObjectAtIndex: (size_t)object __attribute__ ((nonnull (1))); /* { dg-warning "refers to parameter type .size_t." } */
|
||||
- (void) removeObjectAtIndex: (size_t)object __attribute__ ((nonnull (1))); /* { dg-warning "refers to parameter type .size_t." } */
|
||||
+ (void) removeObjectAtIndex: (my_size_t)object __attribute__ ((nonnull (1))); /* { dg-warning "refers to parameter type .my_size_t." } */
|
||||
- (void) removeObjectAtIndex: (my_size_t)object __attribute__ ((nonnull (1))); /* { dg-warning "refers to parameter type .my_size_t." } */
|
||||
|
||||
+ (void) removeObject: (id)object __attribute__ ((nonnull (MyArray))); /* { dg-error "" } */
|
||||
/* { dg-warning "attribute argument is invalid" "" { target *-*-* } .-1 } */
|
||||
|
Loading…
x
Reference in New Issue
Block a user