Skip to content

Commit

Permalink
add a test for MPR#6468
Browse files Browse the repository at this point in the history
  • Loading branch information
trefis committed May 4, 2018
1 parent dd01cab commit b734672
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions testsuite/tests/tool-toplevel/ocamltests
@@ -1,4 +1,5 @@
exotic_lists.ml
pr6468.ml
pr7060.ml
pr7751.ml
strings.ml
Expand Down
11 changes: 11 additions & 0 deletions testsuite/tests/tool-toplevel/pr6468.compilers.reference
@@ -0,0 +1,11 @@
val f : unit -> 'a = <fun>
Characters 11-15:
let g () = f (); 1;;
^^^^
Warning 21: this statement never returns (or has an unsound type.)
val g : unit -> int = <fun>
Exception: Not_found.
Raised at file "//toplevel//", line 5, characters 17-26
Called from file "//toplevel//", line 5, characters -15--11
Called from file "toplevel/toploop.ml", line 180, characters 17-56

7 changes: 7 additions & 0 deletions testsuite/tests/tool-toplevel/pr6468.ml
@@ -0,0 +1,7 @@
(* TEST
* toplevel
*)

let f () = raise Not_found;;
let g () = f (); 1;;
g ();;

0 comments on commit b734672

Please sign in to comment.