This is the mail archive of the gcc-bugs@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: TESTCASE: STL's equal: Internal compiler error.


> What else is necessary in addition to that 
>   // Build don't link:
> comment? I've added?
> 
> Respectively, where can I found useful information about the testsuite
> and how to add cases? ("deja" does not appear in the info files...)

Here's the list of features I use:
- If the program is complete, just leave it without any 'control comments'.
  I.e. //Build don't link: is only necessary if it wouldn't link, rightfully.
  If it does link, have it return 0 on success, and abort on failure.
- If the program has an error, place 
  //ERROR -
  at the end of the errorneous (sp?) line. Do this for each line that
  produces an error number. For the main error line, put a comment after
  the dash to explain why the program is in error.
  Same for //WARNING -
- place a comment on top of the file to tell what the test case tests for.
  This is sometimes difficult: If the compiler crashes, you test whether
  it accepts the source without crashing.

This is about all. You could have target-specific test cases and
whatnot, but writing a test case is really easy.

Martin


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