1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_002.phpt
Nikita Popov 7b4618e396 Fix SSA NOP removal
NOPs need to be tracked in the shiftlist as well, as there may be
jumps to NOPs.
2016-06-05 23:00:32 +02:00

17 lines
198 B
PHP

--TEST--
Incorrect NOP removal on jump to NOP
--FILE--
<?php
function test(int $i) : int {
if ($i == 1) {
$x = $i + 1;
}
return $i;
}
var_dump(test(42));
?>
--EXPECT--
int(42)