summaryrefslogtreecommitdiff
path: root/testsuite/tests/lib-dynlink-bytecode/plug2.ml
blob: e83275e524cffb28a87e933123ef7e7137d6cdc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(***********************************************************************)
(*                                                                     *)
(*                                OCaml                                *)
(*                                                                     *)
(*                        Alain Frisch, LexiFi                         *)
(*                                                                     *)
(*  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.               *)
(*                                                                     *)
(***********************************************************************)

external stub2: unit -> unit = "stub2"

let f x = print_string "This is Plug2.f\n"; x + 2

let () = Registry.register f

let () = stub2 ()