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

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t172-pushenvacc3.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 x = 5 in
 
3
let y = 4 in
 
4
let z = 3 in
 
5
let f _ = z + y + x in
 
6
if f 0 <> 12 then raise Not_found
 
7
;;
 
8
 
 
9
(**
 
10
       0 CONSTINT 42
 
11
       2 PUSHACC0 
 
12
       3 MAKEBLOCK1 0
 
13
       5 POP 1
 
14
       7 SETGLOBAL Lib
 
15
       9 BRANCH 18
 
16
      11 ENVACC1 
 
17
      12 PUSHENVACC2 
 
18
      13 PUSHENVACC3 
 
19
      14 ADDINT 
 
20
      15 ADDINT 
 
21
      16 RETURN 1
 
22
      18 CONSTINT 5
 
23
      20 PUSHCONSTINT 4
 
24
      22 PUSHCONST3 
 
25
      23 PUSHACC0 
 
26
      24 PUSHACC2 
 
27
      25 PUSHACC4 
 
28
      26 CLOSURE 3, 11
 
29
      29 PUSHCONSTINT 12
 
30
      31 PUSHCONST0 
 
31
      32 PUSHACC2 
 
32
      33 APPLY1 
 
33
      34 NEQ 
 
34
      35 BRANCHIFNOT 42
 
35
      37 GETGLOBAL Not_found
 
36
      39 MAKEBLOCK1 0
 
37
      41 RAISE 
 
38
      42 POP 4
 
39
      44 ATOM0 
 
40
      45 SETGLOBAL T172-pushenvacc3
 
41
      47 STOP 
 
42
**)