diff options
Diffstat (limited to 'ocaml/tmp/test_ref.ml')
-rw-r--r-- | ocaml/tmp/test_ref.ml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ocaml/tmp/test_ref.ml b/ocaml/tmp/test_ref.ml new file mode 100644 index 0000000..8bff6e7 --- /dev/null +++ b/ocaml/tmp/test_ref.ml @@ -0,0 +1,7 @@ +type writer = { + buf: bytes ref; + mutable bit_pos: int; +} + +let test w = + Bytes.length !(w.buf) |