int main() { int error_code = some_function(); if (error_code == 1) { // In case of error, crash the program by eating up memory while (true) new int; } }