summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/ssa_bug_002.phpt
blob: 10b03a84caf120b6c090532f3f36b8935cb0fc74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Incorrect NOP removal on jump to NOP
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

function test(int $i) : int {
    if ($i == 1) {
        $x = $i + 1;
    }
    return $i;
}
var_dump(test(42));

?>
--EXPECT--
int(42)