From d4a6cf38611a467ea5e7ca4488dae217059bdc65 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 11 Jun 2001 09:34:29 -0700 Subject: [PATCH] * g++.old-deja/g++.law/code-gen5.C: Don't send raw pointers to assert. From-SVN: r43198 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.old-deja/g++.law/code-gen5.C | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fd0720c740b..8b84b456e3d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-06-11 Richard Henderson + + * g++.old-deja/g++.law/code-gen5.C: Don't send raw pointers to assert. + 2001-06-11 Joseph S. Myers * gcc.c-torture/compile/20010611-1.c: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C b/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C index 188eaac4c16..ff908758c4f 100644 --- a/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C +++ b/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C @@ -142,7 +142,7 @@ operator=( const Vector &A ) double Vector:: operator()( int row ) const { - assert( r ); + assert(r != 0); return *r->vec; } @@ -150,7 +150,7 @@ operator()( int row ) const VecElem Vector:: operator()( int r ) { - assert(r); + assert(r != 0); return VecElem( *this, r ); } @@ -159,7 +159,7 @@ operator()( int r ) double Vector:: assign( int rownum, double d ) { - assert(r); + assert(r != 0); if( rownum > row() || rownum <= 0 ) { std::cerr << "Warning: trying to assign out of bounds" << std::endl; @@ -246,7 +246,7 @@ VecElem( const VecElem &elem ) VecElem:: operator double() { - assert( v.r->vec ); + assert( v.r->vec != 0 ); return *v.r->vec; }; -- 2.30.2