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

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t090-acc2.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 = true in
 
3
let y = false in
 
4
let z = false in
 
5
();
 
6
if not x 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 CONST1 
 
16
      10 PUSHCONST0 
 
17
      11 PUSHCONST0 
 
18
      12 PUSHCONST0 
 
19
      13 ACC2 
 
20
      14 BOOLNOT 
 
21
      15 BRANCHIFNOT 22
 
22
      17 GETGLOBAL Not_found
 
23
      19 MAKEBLOCK1 0
 
24
      21 RAISE 
 
25
      22 POP 3
 
26
      24 ATOM0 
 
27
      25 SETGLOBAL T090-acc2
 
28
      27 STOP 
 
29
**)