bison
[m6w6/ext-psi] / tests / parser / validate004.phpt
diff --git a/tests/parser/validate004.phpt b/tests/parser/validate004.phpt
new file mode 100644 (file)
index 0000000..31b8509
--- /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("struct a; \ntypedef struct a a_t;");
+?>
+===DONE===
+--EXPECTF--
+===TEST===
+
+Warning: Cannot compute size of empty struct 'a' in %s on line 1
+===DONE===