This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch applied to offsetof3.C
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: rth at redhat dot com
- Date: Mon, 09 Jun 2003 18:15:15 +0100
- Subject: patch applied to offsetof3.C
- Organization: SuperH UK Ltd.
I have checked in the appended patch as obvious.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658
2003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
* g++.dg/other/offsetof3.C: Adjust linenumber of last expected warning.
Index: g++.dg/other/offsetof3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/other/offsetof3.C,v
retrieving revision 1.2
diff -p -r1.2 offsetof3.C
*** g++.dg/other/offsetof3.C 7 Jun 2003 21:53:53 -0000 1.2
--- g++.dg/other/offsetof3.C 9 Jun 2003 17:11:47 -0000
*************** typedef X* pX;
*** 13,16 ****
typedef __SIZE_TYPE__ size_t;
size_t yoff = size_t(&(pX(0)->y)); /* { dg-warning "invalid access" "" } */
! /* { dg-warning "macro was used incorrectly" "" { target *-*-* } 14 } */
--- 13,16 ----
typedef __SIZE_TYPE__ size_t;
size_t yoff = size_t(&(pX(0)->y)); /* { dg-warning "invalid access" "" } */
! /* { dg-warning "macro was used incorrectly" "" { target *-*-* } 15 } */