This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 3.0 PATCH: Fix wchar_t definition for bi-arch Solaris 7/8 and IRIX 6


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]