diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/offsetof3.C | 3 | ||||
-rw-r--r-- | 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 <rth@redhat.com> + + * g++.dg/other/offsetof3.C: Use size_t. + * g++.dg/other/offsetof4.C: Likewise. + 2003-06-07 H.J. Lu <hongjiu.lu@intel.com> * 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)); |