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

« back to all changes in this revision

Viewing changes to testsuite/tests/tool-ocaml/t192-getfloatfield-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
type t = { a : float; b : float };;
 
3
 
 
4
if { a = 0.1; b = 0.2 }.a <> 0.1 then raise Not_found;;
 
5
 
 
6
(**
 
7
       0 CONSTINT 42
 
8
       2 PUSHACC0 
 
9
       3 MAKEBLOCK1 0
 
10
       5 POP 1
 
11
       7 SETGLOBAL Lib
 
12
       9 GETGLOBAL 0.1
 
13
      11 PUSHGETGLOBAL [|0.1, 0.2|]
 
14
      13 GETFLOATFIELD 0
 
15
      15 C_CALL2 neq_float
 
16
      17 BRANCHIFNOT 24
 
17
      19 GETGLOBAL Not_found
 
18
      21 MAKEBLOCK1 0
 
19
      23 RAISE 
 
20
      24 ATOM0 
 
21
      25 SETGLOBAL T192-getfloatfield-1
 
22
      27 STOP 
 
23
**)