aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-02-09 12:15:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-02-09 12:15:39 -0800
commit5ad789bfb4566bc8444c199bfeff8a509328f740 (patch)
treeb8f9296db7ddfa1403d1289320d54a3fb140ba9a /tests/runner.py
parent7b088a2235cc89e9ca360e970199b26cf99736eb (diff)
parent7e97c880b6281d53b1f75e34989ee61d434cad2a (diff)
Merge pull request #240 from ehsan/uncaught2
Always pick the JS implementation of uncaught_exception
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py12
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')