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