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

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t092-pushacc.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 = false in
 
3
let y = true in
 
4
let z = true in
 
5
let a = true in
 
6
let b = true in
 
7
let c = true in
 
8
let d = true in
 
9
let e = true in
 
10
let f = true in
 
11
if x then raise Not_found
 
12
;;
 
13
 
 
14
(**
 
15
       0 CONSTINT 42
 
16
       2 PUSHACC0 
 
17
       3 MAKEBLOCK1 0
 
18
       5 POP 1
 
19
       7 SETGLOBAL Lib
 
20
       9 CONST0 
 
21
      10 PUSHCONST1 
 
22
      11 PUSHCONST1 
 
23
      12 PUSHCONST1 
 
24
      13 PUSHCONST1 
 
25
      14 PUSHCONST1 
 
26
      15 PUSHCONST1 
 
27
      16 PUSHCONST1 
 
28
      17 PUSHCONST1 
 
29
      18 PUSHACC 8
 
30
      20 BRANCHIFNOT 27
 
31
      22 GETGLOBAL Not_found
 
32
      24 MAKEBLOCK1 0
 
33
      26 RAISE 
 
34
      27 POP 9
 
35
      29 ATOM0 
 
36
      30 SETGLOBAL T092-pushacc
 
37
      32 STOP 
 
38
**)