1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 08:28:26 +02:00
Files
archived-php-src/ext/opcache/tests/ssa_bug_002.phpt
T
Max Semenik e9f783fcdd Migrate skip checks to --EXTENSIONS--, p3
For rationale, see #6787

Extensions migrated in part 3:
* ftp
* gmp
* iconv
* opcache
* shmop
2021-04-03 15:23:25 +02:00

19 lines
221 B
PHP

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