2018-01-12 09:08:25 -08:00
|
|
|
(* TEST
|
|
|
|
flags = " -w A -strict-sequence "
|
2018-08-10 05:22:18 -07:00
|
|
|
* expect
|
2018-01-12 09:08:25 -08:00
|
|
|
*)
|
|
|
|
|
2017-01-29 04:50:39 -08:00
|
|
|
(* Ignore OCAMLRUNPARAM=b to be reproducible *)
|
|
|
|
Printexc.record_backtrace false;;
|
2018-08-10 05:22:18 -07:00
|
|
|
[%%expect {|
|
|
|
|
- : unit = ()
|
|
|
|
|}]
|
2017-01-29 04:50:39 -08:00
|
|
|
|
2016-08-02 17:03:43 -07:00
|
|
|
let () = raise Exit; () ;; (* warn *)
|
2018-08-10 05:22:18 -07:00
|
|
|
[%%expect {|
|
|
|
|
Line 1, characters 9-19:
|
|
|
|
let () = raise Exit; () ;; (* warn *)
|
|
|
|
^^^^^^^^^^
|
|
|
|
Warning 21: this statement never returns (or has an unsound type.)
|
2018-08-27 04:42:14 -07:00
|
|
|
Exception: Stdlib.Exit.
|
2018-08-10 05:22:18 -07:00
|
|
|
|}]
|