diff options
author | Richard Henderson <rth@redhat.com> | 2003-06-07 14:53:53 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2003-06-07 14:53:53 -0700 |
commit | aa5acc89d9c35e8707308641911382cb70eee511 (patch) | |
tree | e3001d4f407908dfdb3f4fc59513f3f425929728 /gcc | |
parent | 1722c2c871e9657e3d4db707816b5e6abe0ad2e8 (diff) | |
download | gcc-aa5acc89d9c35e8707308641911382cb70eee511.zip gcc-aa5acc89d9c35e8707308641911382cb70eee511.tar.gz gcc-aa5acc89d9c35e8707308641911382cb70eee511.tar.bz2 |
offsetof3.C: Use size_t.
* g++.dg/other/offsetof3.C: Use size_t.
* g++.dg/other/offsetof4.C: Likewise.
From-SVN: r67603
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 b0edd88..5ab7ce8 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 f600765..678b0a1 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 587231e..ab2282e 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)); |