Index: cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.h =================================================================== --- cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.h +++ cfe/trunk/unittests/ASTMatchers/ASTMatchersTest.h @@ -73,7 +73,11 @@ std::unique_ptr Factory( newFrontendActionFactory(&Finder)); // Some tests use typeof, which is a gnu extension. - std::vector Args(1, CompileArg); + std::vector Args; + Args.push_back(CompileArg); + // Some tests need rtti/exceptions on + Args.push_back("-frtti"); + Args.push_back("-fexceptions"); if (!runToolOnCodeWithArgs(Factory->create(), Code, Args, "input.cc", VirtualMappedFiles)) { return testing::AssertionFailure() << "Parsing error in \"" << Code << "\"";