From: Michael Wallner Date: Mon, 10 Dec 2018 08:10:32 +0000 (+0100) Subject: new test X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=commitdiff_plain;h=077b151b807ea0704eb79761278bb4ca615a5344;hp=ef4e043826e92afd32000b7d945cdf86a6e9a223 new test --- diff --git a/tests/parser/cpp005.phpt b/tests/parser/cpp005.phpt new file mode 100644 index 0000000..6560247 --- /dev/null +++ b/tests/parser/cpp005.phpt @@ -0,0 +1,34 @@ +--TEST-- +CPP expansion +--SKIPIF-- + +--INI-- +psi.directory={PWD}/cpp005 +--FILE-- +===TEST=== + +===DONE=== +--EXPECTF-- +PHP Warning: PSI syntax error, unexpected NUMBER, expecting ) or "," at col 11 in %stests/parser/cpp005/expansion.psi on line 2 +PHP Warning: PSI preceding token 'bar' at col 1 in %stests/parser/cpp005/expansion.psi on line 2 +PHP Warning: PSI preceding token 'foo' at col 1 in %stests/parser/cpp005/expansion.psi on line 2 +PHP Warning: PSI preceding token '(' at col 10 in %stests/parser/cpp005/expansion.psi on line 2 +PHP Warning: PSI offending token '2' at col 11 in %stests/parser/cpp005/expansion.psi on line 2 +PHP Warning: PSI following token ')' at col 12 in %stests/parser/cpp005/expansion.psi on line 2 + +Warning: PSI syntax error, unexpected NUMBER, expecting ) or "," at col 11 in %stests/parser/cpp005/expansion.psi on line 2 + +Warning: PSI preceding token 'bar' at col 1 in %stests/parser/cpp005/expansion.psi on line 2 + +Warning: PSI preceding token 'foo' at col 1 in %stests/parser/cpp005/expansion.psi on line 2 + +Warning: PSI preceding token '(' at col 10 in %stests/parser/cpp005/expansion.psi on line 2 + +Warning: PSI offending token '2' at col 11 in %stests/parser/cpp005/expansion.psi on line 2 + +Warning: PSI following token ')' at col 12 in %stests/parser/cpp005/expansion.psi on line 2 +===TEST=== +===DONE=== diff --git a/tests/parser/cpp005/expansion.psi b/tests/parser/cpp005/expansion.psi new file mode 100644 index 0000000..232ab5a --- /dev/null +++ b/tests/parser/cpp005/expansion.psi @@ -0,0 +1,2 @@ +#define foo(x) bar x +foo(foo) (2)