#define KIT_TEST_IMPLEMENTATION #include "../kit/test.h" #include #include // Signal handling don't work in MinGW // #ifndef __MINGW32__ TEST("c++ std::exception") { throw std::exception(); } // Can't handle multiple terminate signals on Windows # ifndef _WIN32 TEST("abort") { abort(); } # endif TEST("invalid access") { *(volatile int *) nullptr = 42; } int main(int argc, char **argv) { return run_tests(argc, argv) ? 0 : 1; } #else int main(int argc, char **argv) { return 0; } #endif #undef KIT_TEST_FILE