X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fparser%2Fvalidate001.phpt;h=1f6113aa0f7fc2b638114d7bc45989c9695bf419;hb=9bcb1df0786a8193d65949c857baaba2f4296e84;hp=f9869a830b1231f300143926057db8c442b721e6;hpb=510306ed8a97c9eb3f113d9181b60ccdf0b91d79;p=m6w6%2Fext-psi diff --git a/tests/parser/validate001.phpt b/tests/parser/validate001.phpt index f9869a8..1f6113a 100644 --- a/tests/parser/validate001.phpt +++ b/tests/parser/validate001.phpt @@ -7,11 +7,13 @@ extension_loaded("psi") or die("skip - need ext/psi"); --FILE-- ===TEST=== ===DONE=== @@ -84,15 +86,15 @@ validate(false, "typedef int bar(int baz); \n typedef int *(*foo)(bar bar);"); --EXPECTF-- ===TEST=== -Warning: PSI syntax error: Unexpected token ';' in %s001.psi on line 1 - -Warning: PSI syntax error: Unexpected token 'int' in %s001.psi on line 1 +Warning: PSI syntax error: Unexpected token ';' at pos 17 in %s001.psi on line 1 -Warning: Type 'bar' cannot be aliased to struct 'foo' in %s001.psi on line 1 +Warning: PSI syntax error: Unexpected token 'int' at pos 14 in %s001.psi on line 1 Warning: Cannot compute size of empty struct 'a' in %s001.psi on line 1 Warning: Unknown variable 'X' in numeric expression in %s001.psi on line 4 -Warning: PSI syntax error: Unexpected token '(' in %s001.psi on line 1 +Warning: PSI syntax error: Unexpected token '(' at pos 26 in %s001.psi on line 1 + +Warning: PSI syntax error: Unexpected token '(' at pos 32 in %s001.psi on line 1 ===DONE===