Added name_runme.ml
Proves solution to rename and %constant. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4695 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bc3ecaef70
commit
41eaa3854d
2 changed files with 9 additions and 1 deletions
|
|
@ -18,4 +18,4 @@ echo "Making the test"
|
||||||
make $swigtest
|
make $swigtest
|
||||||
echo "Building ${thetest}_top"
|
echo "Building ${thetest}_top"
|
||||||
gcc -c -g $cppopt -I$OCAMLINC ${thetest}_wrap.c
|
gcc -c -g $cppopt -I$OCAMLINC ${thetest}_wrap.c
|
||||||
ocamlmktop -cclib -g -custom ${thetest}_wrap.o ${thetest}.cmo -o ${thetest}_top
|
ocamlmktop -cclib -g -custom ${thetest}_wrap.o ${thetest}.cmo -o ${thetest}_top -cclib -lstdc++
|
||||||
|
|
|
||||||
8
SWIG/Examples/test-suite/ocaml/name_runme.ml
Normal file
8
SWIG/Examples/test-suite/ocaml/name_runme.ml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
open Name
|
||||||
|
|
||||||
|
let _ = if (get_int _Baz_2) - (get_int (_bar_2 C_void)) == 30
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue