~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t180-appterm3.ml

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-04-21 21:35:08 UTC
  • mfrom: (1.1.11 upstream) (12.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110421213508-kg34453aqmb0moha
* Fixes related to -output-obj with g++ (in debian/patches):
  - add Declare-primitive-name-table-as-const-char
  - add Avoid-multiple-declarations-in-generated-.c-files-in
  - fix Embed-bytecode-in-C-object-when-using-custom: the closing
    brace for extern "C" { ... } was missing in some cases

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
open Lib;;
 
2
let f _ _ _ = 13 in
 
3
let g _ = f 0 0 0 in
 
4
if g 0 <> 13 then raise Not_found
 
5
;;
 
6
 
 
7
(**
 
8
       0 CONSTINT 42
 
9
       2 PUSHACC0 
 
10
       3 MAKEBLOCK1 0
 
11
       5 POP 1
 
12
       7 SETGLOBAL Lib
 
13
       9 BRANCH 24
 
14
      11 CONST0 
 
15
      12 PUSHCONST0 
 
16
      13 PUSHCONST0 
 
17
      14 PUSHENVACC1 
 
18
      15 APPTERM3 4
 
19
      17 RESTART 
 
20
      18 GRAB 2
 
21
      20 CONSTINT 13
 
22
      22 RETURN 3
 
23
      24 CLOSURE 0, 18
 
24
      27 PUSHACC0 
 
25
      28 CLOSURE 1, 11
 
26
      31 PUSHCONSTINT 13
 
27
      33 PUSHCONST0 
 
28
      34 PUSHACC2 
 
29
      35 APPLY1 
 
30
      36 NEQ 
 
31
      37 BRANCHIFNOT 44
 
32
      39 GETGLOBAL Not_found
 
33
      41 MAKEBLOCK1 0
 
34
      43 RAISE 
 
35
      44 POP 2
 
36
      46 ATOM0 
 
37
      47 SETGLOBAL T180-appterm3
 
38
      49 STOP 
 
39
**)