[test] add compiler test for C++.