diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-06-29 14:25:00 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:15:23 -0300 |
commit | d16b6184d61e0c3d97de3e9fd0906ba33019faa4 (patch) | |
tree | e96292eba75b2310ab5dbbd62724393fa2c7bd85 | |
parent | 7371489bfb43b70bb5df43925d323bdd75b0e945 (diff) | |
download | gcc-d16b6184d61e0c3d97de3e9fd0906ba33019faa4.zip gcc-d16b6184d61e0c3d97de3e9fd0906ba33019faa4.tar.gz gcc-d16b6184d61e0c3d97de3e9fd0906ba33019faa4.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/c-c++-common/builtin-arith-overflow-1.c | 3 |
1 files changed, 1 insertions, 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 a428cd5..ba52b44 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" } */ |