From aa5acc89d9c35e8707308641911382cb70eee511 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 7 Jun 2003 14:53:53 -0700 Subject: [PATCH] offsetof3.C: Use size_t. * g++.dg/other/offsetof3.C: Use size_t. * g++.dg/other/offsetof4.C: Likewise. From-SVN: r67603 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/other/offsetof3.C | 3 ++- gcc/testsuite/g++.dg/other/offsetof4.C | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b0edd885678..5ab7ce8dd21 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2003-06-07 Richard Henderson + + * g++.dg/other/offsetof3.C: Use size_t. + * g++.dg/other/offsetof4.C: Likewise. + 2003-06-07 H.J. Lu * lib/copy-file.exp: New. Implement gcc_copy_files. diff --git a/gcc/testsuite/g++.dg/other/offsetof3.C b/gcc/testsuite/g++.dg/other/offsetof3.C index f600765fd90..678b0a188b1 100644 --- a/gcc/testsuite/g++.dg/other/offsetof3.C +++ b/gcc/testsuite/g++.dg/other/offsetof3.C @@ -10,6 +10,7 @@ struct X }; typedef X* pX; +typedef __SIZE_TYPE__ size_t; -int yoff = int(&(pX(0)->y)); /* { dg-warning "invalid access" "" } */ +size_t yoff = size_t(&(pX(0)->y)); /* { dg-warning "invalid access" "" } */ /* { dg-warning "macro was used incorrectly" "" { target *-*-* } 14 } */ diff --git a/gcc/testsuite/g++.dg/other/offsetof4.C b/gcc/testsuite/g++.dg/other/offsetof4.C index 587231ef88e..ab2282e2556 100644 --- a/gcc/testsuite/g++.dg/other/offsetof4.C +++ b/gcc/testsuite/g++.dg/other/offsetof4.C @@ -11,5 +11,6 @@ struct X }; typedef X* pX; +typedef __SIZE_TYPE__ size_t; -int yoff = int(&(pX(0)->y)); +size_t yoff = size_t(&(pX(0)->y)); -- 2.30.2