offsetof3.C: Use size_t.
authorRichard Henderson <rth@redhat.com>
Sat, 7 Jun 2003 21:53:53 +0000 (14:53 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 7 Jun 2003 21:53:53 +0000 (14:53 -0700)
        * g++.dg/other/offsetof3.C: Use size_t.
        * g++.dg/other/offsetof4.C: Likewise.

From-SVN: r67603

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/offsetof3.C
gcc/testsuite/g++.dg/other/offsetof4.C

index b0edd885678e2a7cd05fbd22160bca1a49a14f79..5ab7ce8dd21ef042c9f462823cbde9b7c4887794 100644 (file)
@@ -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.
index f600765fd900c6d57eaeb4c2aa015e9d64f96186..678b0a188b14956d9628bef396844a1e87a29aee 100644 (file)
@@ -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 } */
index 587231ef88ea49f4d531b2846d7bfe8ab83425c6..ab2282e25568589a32562a95cc013b728358f313 100644 (file)
@@ -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));