From 077b151b807ea0704eb79761278bb4ca615a5344 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 10 Dec 2018 09:10:32 +0100 Subject: [PATCH] new test --- tests/parser/cpp005.phpt | 34 +++++++++++++++++++++++++++++++ tests/parser/cpp005/expansion.psi | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 tests/parser/cpp005.phpt create mode 100644 tests/parser/cpp005/expansion.psi 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) -- 2.30.2