aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2017-01-12 18:07:51 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2017-01-12 11:07:51 -0700
commit2bcd9f3208c6f5c57ec8ed413f1743f298d00476 (patch)
tree85d6cda35a76980b08062994e77be35699249eaf
parentb2fc1c705024f4d835a801c615c799fbb1fbb282 (diff)
downloadgcc-2bcd9f3208c6f5c57ec8ed413f1743f298d00476.zip
gcc-2bcd9f3208c6f5c57ec8ed413f1743f298d00476.tar.gz
gcc-2bcd9f3208c6f5c57ec8ed413f1743f298d00476.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/c-c++-common/Waddress-2.c8
2 files changed, 6 insertions, 8 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4d6202e..7fd80a0 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2017-01-12 Martin Sebor <msebor@redhat.com>
+ 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 <msebor@redhat.com>
+
PR testsuite/79073
* gcc.dg/pr78973.c: Xfail on ILP32 targets.
diff --git a/gcc/testsuite/c-c++-common/Waddress-2.c b/gcc/testsuite/c-c++-common/Waddress-2.c
index b58a55f..025efda 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;
-}
-
-
-