[sanitizer] Test that we can compile C++ code on the target platform.