1 2 3 4 5
#include <exception> int main(int argc, char* argv[]) { return 0 == std::uncaught_exceptions() ? 0 : 1; }