Updated the OCaml/bitwriter.ml test for OCaml 4.06+
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 30 Nov 2019 12:31:16 +0000 (13:31 +0100)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 30 Nov 2019 12:35:23 +0000 (13:35 +0100)
commitb094258661e0064133679b8b51e981eefda07ec7
tree41f015d1cfb0882bcc21d87494cfdf7b04598a9d
parentcee62e6fcff6e833bedca1554f6df8f8234e9b13
Updated the OCaml/bitwriter.ml test for OCaml 4.06+

Since OCaml 4.02 (released in 2014), strings and bytes are different
types, but up until OCaml 4.06, the compiler defaulted to a
compatibility mode "unsafe-string". OCaml 4.06 flips the default to
"safe-string", breaking the test.

This change should be compatible with OCaml 4.02+, but is only truly
necessary for OCaml 4.06+.

For more information, see:

https://caml.inria.fr/pub/docs/manual-ocaml/libref/String.html
https://ocaml.org/releases/4.02.html
llvm/test/Bindings/OCaml/bitwriter.ml