Commit aa5acc89 by Richard Henderson Committed by Richard Henderson

offsetof3.C: Use size_t.

        * g++.dg/other/offsetof3.C: Use size_t.
        * g++.dg/other/offsetof4.C: Likewise.

From-SVN: r67603
parent 1722c2c8
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.
......
......@@ -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 } */
......@@ -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));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment