This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
sizeof(int) in testsuite
- From: DJ Delorie <dj at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 2 Jun 2005 21:49:03 -0400
- Subject: sizeof(int) in testsuite
gcc.dg/compat/struct-layout-1_generate.c assumes sizeof(int) is 4.
This of course fails on any target where sizeof(int) is 2. They may
fail when sizeof(int) is 8 too, or at least they won't be testing the
full range of possibilities.
I've noticed that quite a few testcases make these types of
assumptions; they may or may not be xfailed for specific 16 bit
targets.
Do we have a standard way of telling the testsuite how big target
types are, or some standard "this test assumes 32 bit int" dejagnu
flag?