Module of module types for OrderedType,ComparableType,Printable,Serializable,Discrete...
[ocaml.git] / testasmcomp / fib.cmm
blobb7e64d3025e60bbcdcad4bea3517dfb100c54860
1 (***********************************************************************)
2 (*                                                                     *)
3 (*                           Objective Caml                            *)
4 (*                                                                     *)
5 (*            Xavier Leroy, projet Cristal, INRIA Rocquencourt         *)
6 (*                                                                     *)
7 (*  Copyright 1996 Institut National de Recherche en Informatique et   *)
8 (*  en Automatique.  All rights reserved.  This file is distributed    *)
9 (*  under the terms of the Q Public License version 1.0.               *)
10 (*                                                                     *)
11 (***********************************************************************)
13 (* $Id$ *)
15 (function "fib" (n: int)
16   (if (< n 2)
17       1
18     (+ (app "fib" (- n 1) int)
19        (app "fib" (- n 2) int))))