summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArt Yerkes <ayerkes@speakeasy.net>2003-04-19 00:34:26 +0000
committerArt Yerkes <ayerkes@speakeasy.net>2003-04-19 00:34:26 +0000
commit09af4a2de0ae734df34c26b599c7ca767721145b (patch)
treebe0d988ea1685474f68430bc5aa422a72b0cd505
parent2cfb9272f8fdc21f81c3becb196000702f0ea0e9 (diff)
downloadswig-09af4a2de0ae734df34c26b599c7ca767721145b.tar.gz
Added name_runme.ml
Proves solution to rename and %constant. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4695 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rwxr-xr-xExamples/test-suite/ocaml/makedebugtop2
-rw-r--r--Examples/test-suite/ocaml/name_runme.ml8
2 files changed, 9 insertions, 1 deletions
diff --git a/Examples/test-suite/ocaml/makedebugtop b/Examples/test-suite/ocaml/makedebugtop
index 8d712801c..4a64bb74e 100755
--- a/Examples/test-suite/ocaml/makedebugtop
+++ b/Examples/test-suite/ocaml/makedebugtop
@@ -18,4 +18,4 @@ echo "Making the test"
make $swigtest
echo "Building ${thetest}_top"
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++
diff --git a/Examples/test-suite/ocaml/name_runme.ml b/Examples/test-suite/ocaml/name_runme.ml
new file mode 100644
index 000000000..902466c69
--- /dev/null
+++ b/Examples/test-suite/ocaml/name_runme.ml
@@ -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
+