Skip to content
Closed

Marshal #6115

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added aaa.marshal
Binary file not shown.
16 changes: 16 additions & 0 deletions gen_aaa.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let foo v =
let s = Marshal.to_string v [Compat_32] in
let ch = open_out_bin "aaa.marshal" in
let () = output_string ch s in
close_out ch

type r = {x: int; s: string}
type v = A | B | C of (int * int) | D of int * int;;

(* foo "abc";; *)
(* foo {x = 3; s = "abc"};; *)
(* foo A;; *)
(* foo B;; *)
(* foo (C (1, 2));; *)
(* foo (D (1, 2));; *)
foo [1;2;3;4;5]
3 changes: 2 additions & 1 deletion jscomp/test/build.ninja

Large diffs are not rendered by default.

Loading