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

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t110-modint-1.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
if 20 mod 3 <> 2 then raise Not_found;;
 
3
 
 
4
(**
 
5
       0 CONSTINT 42
 
6
       2 PUSHACC0 
 
7
       3 MAKEBLOCK1 0
 
8
       5 POP 1
 
9
       7 SETGLOBAL Lib
 
10
       9 CONST2 
 
11
      10 PUSHCONST3 
 
12
      11 PUSHCONSTINT 20
 
13
      13 MODINT 
 
14
      14 NEQ 
 
15
      15 BRANCHIFNOT 22
 
16
      17 GETGLOBAL Not_found
 
17
      19 MAKEBLOCK1 0
 
18
      21 RAISE 
 
19
      22 ATOM0 
 
20
      23 SETGLOBAL T110-modint-1
 
21
      25 STOP 
 
22
**)