@with_both_exception_handling
def test_exceptions_uncaught_2(self):
    self.set_setting('EXIT_RUNTIME', 1)
    src = '\n      #include <iostream>\n      #include <exception>\n\n      int main() {\n        try {\n            throw std::exception();\n        } catch(std::exception) {\n          try {\n            throw;\n          } catch(std::exception) {}\n        }\n\n        if (std::uncaught_exception())\n          std::cout << "ERROR: uncaught_exception still set.";\n        else\n          std::cout << "OK";\n      }\n    '
    self.do_run(src, 'OK\n')
@with_both_exception_handling
def test_exceptions_uncaught_2(self):
    self.set_setting('EXIT_RUNTIME', 1)
    src = '\n      #include <iostream>\n      #include <exception>\n\n      int main() {\n        try {\n            throw std::exception();\n        } catch(std::exception) {\n          try {\n            throw;\n          } catch(std::exception) {}\n        }\n\n        if (std::uncaught_exception())\n          std::cout << "ERROR: uncaught_exception still set.";\n        else\n          std::cout << "OK";\n      }\n    '
    self.do_run(src, 'OK\n')