#include "../kit_test/test.h" #include #include TEST("c++ exception") { throw std::exception(); } TEST("abort") { abort(); } TEST("invalid access") { *(volatile int *) nullptr = 42; } int main(int argc, char **argv) { // FIXME // On Windows, doesn't work for some reason... // Both MSVC and MinGW. // #ifndef _WIN32 if (run_tests(argc, argv) != 1) return 1; #endif return 0; }