diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-07 21:53:53 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-07 21:53:53 +0000 |
commit | 1eafc38c25116a1f7fc2f1a4dd030c7889ef48f5 (patch) | |
tree | e3001d4f407908dfdb3f4fc59513f3f425929728 /gcc | |
parent | bf4311e9069925abd31f460e0982a3c6f8756704 (diff) | |
download | ppe42-gcc-1eafc38c25116a1f7fc2f1a4dd030c7889ef48f5.tar.gz ppe42-gcc-1eafc38c25116a1f7fc2f1a4dd030c7889ef48f5.zip |
* g++.dg/other/offsetof3.C: Use size_t.
* g++.dg/other/offsetof4.C: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67603 138bc75d-0d04-0410-961f-82ee72b054a4
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)); |