From: Jakub Jelinek Date: Mon, 29 Jun 2020 12:25:00 +0000 (+0200) Subject: testsuite: Adjust testcase for recent -Wnonnull changes X-Git-Tag: basepoints/gcc-12~6549 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baa4578911dbcc247110934505efdb6590e0f1b6;p=thirdparty%2Fgcc.git testsuite: Adjust testcase for recent -Wnonnull changes 2020-06-29 Jakub Jelinek PR c++/86568 * c-c++-common/builtin-arith-overflow-1.c (generic_3, typed_3_null): Adjust dg-warning. --- diff --git a/gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c b/gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c index a428cd50c5af..ba52b448a099 100644 --- a/gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c +++ b/gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c @@ -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" } */