php-src/Zend/tests/post_inc_without_use.phpt
Nikita Popov 5cae6b9b0d Check that POST_INC/DEC has use in DFA optimization
We'd have usually converted it into a PRE_INC if there is no use,
but that's not guaranteed. If there is no use at this point, make
sure we don't try to use the sentinel value.
2021-09-09 15:48:51 +02:00

14 lines
165 B
PHP

--TEST--
POST_INC without use during DFA optimization
--FILE--
<?php
function test($n) {
for ($i = 0; $i < $n; !$i++) {}
}
?>
===DONE===
--EXPECT--
===DONE===