GCC contains the following C language test suites, in the
gcc/testsuite
directory:
gcc.c-torture/compat
This directory should probably not be used for new tests.
gcc.c-torture/compile
.x
files, mostly these test cases
should not contain platform dependencies. FIXME: discuss how defines
such as NO_LABEL_VALUES
and STACK_SIZE
are used.
gcc.c-torture/execute
gcc.c-torture/compile
apply.
gcc.c-torture/unsorted
This directory should probably not be used for new tests.
gcc.dg
dg
harness.
Magic comments determine whether the file is preprocessed, compiled,
linked or run. In these tests, error and warning message texts are
compared against expected texts or regular expressions given in
comments. These tests are run with the options -ansi -pedantic
unless other options are given in the test. Except as noted below they
are not run with multiple optimization options.
gcc.dg/cpp
gcc.dg/debug
gcc.dg/format
-Wformat
format
checking. Tests in this directory are run with and without
-DWIDE
.
gcc.dg/noncompile
gcc.dg/special
gcc.c-torture/misc-tests
FIXME: merge in testsuite/README.gcc
and discuss the format of
test cases and magic comments more.