How it is possible for C compiler validation suites to use any feature of the C standard library if the C standard library is actually under test and may be buggy (which invalidates the validation suite itself)?
For example, the suite may use itself memset
, fopen
, etc., but memset
, fopen
, etc. are actually under test and may be buggy.
Confused. Clarification / experience is needed.
UPD. Clarified after examining suite's source code. The suite uses two compilers:
- Reference compiler is used to build the suite itself.
- IUT (Implementation Under Test) compiler is used to run tests on it.