Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / exn-history3.sml
CommitLineData
7f918cf1
CE
1exception FOO
2
3fun f x =
4 if x = 0
5 then raise FOO
6 else f (x - 1) handle Overflow => 13
7
8val _ = (f 10; ()) handle e => (List.app (fn s => print (concat [s, "\n"]))
9 (SMLofNJ.exnHistory e))
10val _ = print "ZZZ\n"
11val _ = (f 10; ()) handle e => (List.app (fn s => print (concat [s, "\n"]))
12 (SMLofNJ.exnHistory e))