testsuite: Adjust testcase for recent -Wnonnull changes
2020-06-29 Jakub Jelinek <jakub@redhat.com> PR c++/86568 * c-c++-common/builtin-arith-overflow-1.c (generic_3, typed_3_null): Adjust dg-warning.
This commit is contained in:
parent
fe7c43a7bc
commit
baa4578911
@ -79,8 +79,7 @@ generic_3 (int a, int b, int c)
|
||||
x += __builtin_add_overflow (0, 0, (bool *)0);
|
||||
|
||||
enum E { e0 };
|
||||
x += __builtin_add_overflow (0, 0, (enum E *)0);
|
||||
*/
|
||||
x += __builtin_add_overflow (0, 0, (enum E *)0); */
|
||||
|
||||
x += __builtin_sub_overflow (0, 0, (char *)0); /* { dg-warning "argument 3 null" } */
|
||||
x += __builtin_add_overflow (0, 0, (short *)0); /* { dg-warning "argument 3 null" } */
|
||||
|
Loading…
Reference in New Issue
Block a user