diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-02-09 14:52:54 -0500 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-02-09 14:53:31 -0500 |
commit | 7e97c880b6281d53b1f75e34989ee61d434cad2a (patch) | |
tree | b8f9296db7ddfa1403d1289320d54a3fb140ba9a /tests/runner.py | |
parent | 7b088a2235cc89e9ca360e970199b26cf99736eb (diff) |
Always pick the JS implementation of uncaught_exception
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index b8927332..ef579a35 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1428,6 +1428,18 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv): ''' self.do_run(src, 'exception? no\nexception? yes\nexception? no\nexception? no\n') + src = r''' + #include <fstream> + #include <iostream> + int main() { + std::ofstream os("test"); + os << std::unitbuf << "foo"; // trigger a call to std::uncaught_exception from + // std::basic_ostream::sentry::~sentry + std::cout << "success"; + } + ''' + self.do_run(src, 'success') + def test_typed_exceptions(self): return self.skip('TODO: fix this for llvm 3.0') |