This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0 PATCH: Fix wchar_t definition for bi-arch Solaris 7/8 and IRIX 6
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Subject: Re: 3.0 PATCH: Fix wchar_t definition for bi-arch Solaris 7/8 and IRIX 6
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 31 May 2001 18:51:24 +0100
- Cc: gcc-patches at gcc dot gnu dot org, Andrew Macleod <amacleod at cygnus dot com>,David dot Billinghurst at riotinto dot com
Rainer Orth wrote:-
> I've now constructed a small testcase, but don't know how correctly to
> integrate it into the testsuite:
Great.
> /* Compile with -Wall to get a warning if built-in and system wchar_t don't
> match. */
Therefore, you want to put it in the gcc.dg directory, with heeaders like
/* { dg-do compile } */
/* { dg-options "-Wall" } */
This makes the test framework compile it with -Wall, and since you've
not put any other dejagnu markers in the test, any diagnostics from
the compiler will constitute a test failure.
You can play with the runtest command line to run the single test,
something like
runtest --tool gcc --srcdir blah/gcc/gcc/testsuite dg.exp="YourTest.c"
(or something very similar) should do it.
See other files in that directory, or the cpp subdirectory, for
abundant examples of how to create tests.
Neil.