xref: /PHP-7.1/ext/opcache/tests/ssa_bug_002.phpt (revision 7b4618e3)
1--TEST--
2Incorrect NOP removal on jump to NOP
3--FILE--
4<?php
5
6function test(int $i) : int {
7    if ($i == 1) {
8        $x = $i + 1;
9    }
10    return $i;
11}
12var_dump(test(42));
13
14?>
15--EXPECT--
16int(42)
17