I need to assemble a set of C and C++ source code to test the
capabilities of a compiler. We are solely concerned to verify that it
correctly identifies the full range of legal constructs (and gives
reasonable warnings/ errors for questionable/illegal constructs); we
are NOT concerned with whether it generates fast or compact code.

Is there any public domain body of code which provides a good test
suite?