[gcc/devel/gccgo] testsuite: Adjust testcase for recent -Wnonnull changes

Ian Lance Taylor ian@gcc.gnu.org
Sun Jul 12 20:08:07 GMT 2020


https://gcc.gnu.org/g:baa4578911dbcc247110934505efdb6590e0f1b6

commit baa4578911dbcc247110934505efdb6590e0f1b6
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Mon Jun 29 14:25:00 2020 +0200

    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.

Diff:
---
 gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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 a428cd50c5a..ba52b448a09 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" } */


More information about the Gcc-cvs mailing list