summaryrefslogtreecommitdiff
path: root/Examples/test-suite/php/typedef_reference_runme.php
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/php/typedef_reference_runme.php')
-rw-r--r--Examples/test-suite/php/typedef_reference_runme.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/test-suite/php/typedef_reference_runme.php b/Examples/test-suite/php/typedef_reference_runme.php
new file mode 100644
index 000000000..88a70f8d3
--- /dev/null
+++ b/Examples/test-suite/php/typedef_reference_runme.php
@@ -0,0 +1,13 @@
+<?php
+
+require "tests.php";
+require "typedef_reference.php";
+
+check::functions(array(somefunc,otherfunc,new_intp,copy_intp,delete_intp,intp_assign,intp_value));
+$int2=copy_intp(2);
+check::equal(2,somefunc($int2)," test passing intp to somefunc");
+$int3=copy_intp(3);
+check::equal(3,otherfunc($int3)," test passing intp to otherfunc");
+
+check::done();
+?>