Source

compiler-libs-hack / ocaml / testsuite / tests / regression / pr5080-notes / pr5080_notes_ok.ml

(***********************************************************************)
(*                                                                     *)
(*                                OCaml                                *)
(*                                                                     *)
(*          Damien Doligez, projet Gallium, INRIA Rocquencourt         *)
(*                                                                     *)
(*  Copyright 2011 Institut National de Recherche en Informatique et   *)
(*  en Automatique.  All rights reserved.  This file is distributed    *)
(*  under the terms of the Q Public License version 1.0.               *)
(*                                                                     *)
(***********************************************************************)

let marshal_int f  =
  match [] with
  | _ :: `INT n :: _ -> f n
  | _ -> failwith "marshal_int"