> See also > https://gcc.gnu.org/ml/gcc-patches/2015-06/msg00765.html - a proposal to add > unit tests to GCC. Grate work! I'll also try to use this framework.
> Probably the message is wrong. Nevertheless, IIRC, the preprocessor is also > run > as xg++. xg++ will invoke the compiler proper (cc1plus), which will perform > preprocessing. Good to know. > Mostly in gcc and libcpp directories. Code from include and libiberty is also > used. > Consider looking at https://gcc.gnu.org/onlinedocs/gccint/Source-Tree.html and > gcc/Makefile.in in more detail. > > Finally, note that GCC has some means of test coverage analysis: you can > configure/build it with "--disable-bootstrap --enable-coverage", run the tests > and then use gcov. Helpful explanation, Mikhail. Thank you.