Skip to content

Commit

Permalink
several more layout annotation tests
Browse files Browse the repository at this point in the history
Signed-off-by: David Vulakh <[email protected]>
  • Loading branch information
dvulakh committed Oct 7, 2024
1 parent 95097d2 commit 3fefbfa
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/passing/tests/layout_annotation-erased.ml.js-ref
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ val foo
type ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt : value
type t_value : value
type t_imm : immediate

type t_imm : immediate =
| Aaaaaaaaaaaaaaaaaaaaa
| Bbbbbbbbbbbbbbbbbbbbb
| Ccccccccccccccccccccc

type t_imm :
immediate =
[ `Aaaaaaaaaaaaaaaaaaaaa
| `Bbbbbbbbbbbbbbbbbbbbb
| `Ccccccccccccccccccccc
]

type t_imm : immediate =
{ aaaaaaaaaaaaaaaaaaaa : rrrrrrrrrrrrrrrrrrrr
; bbbbbbbbbbbbbbbbbbbb : ssssssssssssssssssss
; cccccccccccccccccccc : tttttttttttttttttttt
}

type t_imm64 : immediate64
type t_float64 : float64
type t_any : any
Expand Down
16 changes: 16 additions & 0 deletions test/passing/tests/layout_annotation-erased.ml.ref
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ type t_value

type t_imm [@@immediate]

type t_imm =
| Aaaaaaaaaaaaaaaaaaaaa
| Bbbbbbbbbbbbbbbbbbbbb
| Ccccccccccccccccccccc
[@@immediate]

type t_imm =
[`Aaaaaaaaaaaaaaaaaaaaa | `Bbbbbbbbbbbbbbbbbbbbb | `Ccccccccccccccccccccc]
[@@immediate]

type t_imm =
{ aaaaaaaaaaaaaaaaaaaa: rrrrrrrrrrrrrrrrrrrr
; bbbbbbbbbbbbbbbbbbbb: ssssssssssssssssssss
; cccccccccccccccccccc: tttttttttttttttttttt }
[@@immediate]

type t_imm64 [@@immediate64]

type t_float64
Expand Down
23 changes: 23 additions & 0 deletions test/passing/tests/layout_annotation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@ type t_value : value
type t_imm
: immediate

type t_imm
: immediate =
| Aaaaaaaaaaaaaaaaaaaaa
| Bbbbbbbbbbbbbbbbbbbbb
| Ccccccccccccccccccccc


type t_imm
: immediate =
[
| `Aaaaaaaaaaaaaaaaaaaaa
| `Bbbbbbbbbbbbbbbbbbbbb
| `Ccccccccccccccccccccc
]


type t_imm
: immediate =
{ aaaaaaaaaaaaaaaaaaaa : rrrrrrrrrrrrrrrrrrrr
; bbbbbbbbbbbbbbbbbbbb : ssssssssssssssssssss
; cccccccccccccccccccc : tttttttttttttttttttt
}

type t_imm64 :
immediate64

Expand Down
19 changes: 19 additions & 0 deletions test/passing/tests/layout_annotation.ml.js-ref
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ val foo
type ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt : value
type t_value : value
type t_imm : immediate

type t_imm : immediate =
| Aaaaaaaaaaaaaaaaaaaaa
| Bbbbbbbbbbbbbbbbbbbbb
| Ccccccccccccccccccccc

type t_imm :
immediate =
[ `Aaaaaaaaaaaaaaaaaaaaa
| `Bbbbbbbbbbbbbbbbbbbbb
| `Ccccccccccccccccccccc
]

type t_imm : immediate =
{ aaaaaaaaaaaaaaaaaaaa : rrrrrrrrrrrrrrrrrrrr
; bbbbbbbbbbbbbbbbbbbb : ssssssssssssssssssss
; cccccccccccccccccccc : tttttttttttttttttttt
}

type t_imm64 : immediate64
type t_float64 : float64
type t_any : any
Expand Down
14 changes: 14 additions & 0 deletions test/passing/tests/layout_annotation.ml.ref
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ type t_value : value

type t_imm : immediate

type t_imm : immediate =
| Aaaaaaaaaaaaaaaaaaaaa
| Bbbbbbbbbbbbbbbbbbbbb
| Ccccccccccccccccccccc

type t_imm :
immediate =
[`Aaaaaaaaaaaaaaaaaaaaa | `Bbbbbbbbbbbbbbbbbbbbb | `Ccccccccccccccccccccc]

type t_imm : immediate =
{ aaaaaaaaaaaaaaaaaaaa: rrrrrrrrrrrrrrrrrrrr
; bbbbbbbbbbbbbbbbbbbb: ssssssssssssssssssss
; cccccccccccccccccccc: tttttttttttttttttttt }

type t_imm64 : immediate64

type t_float64 : float64
Expand Down

0 comments on commit 3fefbfa

Please sign in to comment.