bison
[m6w6/ext-psi] / tests / parser / validate006.phpt
diff --git a/tests/parser/validate006.phpt b/tests/parser/validate006.phpt
new file mode 100644 (file)
index 0000000..ab1b02f
--- /dev/null
@@ -0,0 +1,17 @@
+--TEST--
+validate types
+--SKIPIF--
+<?php 
+extension_loaded("psi") or die("skip - need ext/psi");
+?>
+--FILE--
+===TEST===
+<?php 
+psi_validate_string("typedef int *(*foo)(int *(*bar)(int baz));");
+?>
+===DONE===
+--EXPECTF--
+===TEST===
+
+Warning: PSI syntax error, unexpected ( at col 26 in %s on line 1
+===DONE===