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

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t140-switch-4.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
match -1 with
 
3
| 0 -> raise Not_found
 
4
| 1 -> raise Not_found
 
5
| _ -> ()
 
6
;;
 
7
 
 
8
(**
 
9
       0 CONSTINT 42
 
10
       2 PUSHACC0 
 
11
       3 MAKEBLOCK1 0
 
12
       5 POP 1
 
13
       7 SETGLOBAL Lib
 
14
       9 CONSTINT -1
 
15
      11 PUSHACC0 
 
16
      12 SWITCH 
 
17
        int 0 -> 18
 
18
        int 1 -> 23
 
19
      16 BRANCH 28
 
20
      18 GETGLOBAL Not_found
 
21
      20 MAKEBLOCK1 0
 
22
      22 RAISE 
 
23
      23 GETGLOBAL Not_found
 
24
      25 MAKEBLOCK1 0
 
25
      27 RAISE 
 
26
      28 CONST0 
 
27
      29 POP 1
 
28
      31 ATOM0 
 
29
      32 SETGLOBAL T140-switch-4
 
30
      34 STOP 
 
31
**)