Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/ocaml/string_simple_runme.ml
2019-08-04 21:38:19 -05:00

10 lines
200 B
OCaml

open Swig
open String_simple
let str = "olé"
let copy = _copy_str (C_string str) as string
let _ = if str <> copy then
raise (Failure ("Error: copy is not equal: original="^str^", copy="^copy))