summaryrefslogtreecommitdiffstats
path: root/testsuite/tests/basic-float/tfloat_record.ml
blob: 36fefaf3d41ce2568f7e58940caa6497fdd9eca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(***********************************************************************)
(*                                                                     *)
(*                                OCaml                                *)
(*                                                                     *)
(*             Pierre Weis, projet Cristal, INRIA Rocquencourt         *)
(*                                                                     *)
(*  Copyright 2007 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 s = { Float_record.f = Float_record.make 1.0 };;

print_float (Float_record.from s.Float_record.f);;
print_newline ();;