summaryrefslogtreecommitdiff
path: root/test/c/exception.sail
diff options
context:
space:
mode:
authorAlasdair2020-05-14 10:25:33 +0100
committerAlasdair2020-05-14 10:25:33 +0100
commita6c52e67303b9180c6925d0538769304883e6cae (patch)
tree2eb226c2e76b8c1c3c392a80c8f74929ba154e7a /test/c/exception.sail
parent3f217002bd732d4c408af6bd34fafbb8bdd4404e (diff)
parent88fe9754f897d3d96533748c6fc73a2d8da76fec (diff)
Merge remote-tracking branch 'origin' into codegen
Diffstat (limited to 'test/c/exception.sail')
-rw-r--r--test/c/exception.sail15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/c/exception.sail b/test/c/exception.sail
index 4e74fcae..251852c9 100644
--- a/test/c/exception.sail
+++ b/test/c/exception.sail
@@ -47,6 +47,19 @@ function main () = {
},
_ => ()
};
+ try throw(Eunknown()) catch {
+ _ => try let _ = g() in () catch {
+ _ => print("caught old exception")
+ }
+ };
+ try
+ try throw Eunknown() catch {
+ Estring(_) => ()
+ }
+ catch {
+ Eunknown() => print("Fall through OK"),
+ _ => ()
+ };
f();
()
-} \ No newline at end of file
+}