From 2bcd9f3208c6f5c57ec8ed413f1743f298d00476 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Thu, 12 Jan 2017 18:07:51 +0000 Subject: [PATCH] PR c/79074 - -Waddress difference between C and C++ with (T*)0 gcc/testsuite/ChangeLog: * c-c++-common/Waddress-2.c: Remove a test to avoid a C failure due to the referenced bug. From-SVN: r244378 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/Waddress-2.c | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d6202e1d1b..7fd80a03fb9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-01-12 Martin Sebor + + PR c/79074 + * c-c++-common/Waddress-2.c: Remove a test to avoid a C failure + due to the referenced bug. + 2017-01-12 Martin Sebor PR testsuite/79073 diff --git a/gcc/testsuite/c-c++-common/Waddress-2.c b/gcc/testsuite/c-c++-common/Waddress-2.c index b58a55fe95f..025efda12cb 100644 --- a/gcc/testsuite/c-c++-common/Waddress-2.c +++ b/gcc/testsuite/c-c++-common/Waddress-2.c @@ -20,11 +20,3 @@ int f2 (void) { return &i != NULL; /* { dg-warning "the address of .i. will never be NULL" } */ } - -int f3 (void) -{ - return &i != (int *) 0; -} - - - -- 2.30.2