Test whether the C++ compiler works by compiling a test program