1 2 3 4 5 6 7 8 9
#include <cstdlib> #define GTEST_HAS_RTTI 0 #include "gtest/gtest.h" int main(int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }