xref: /PHP-7.3/ext/opcache/tests/ssa_bug_002.phpt (revision 75bc3446)
1--TEST--
2Incorrect NOP removal on jump to NOP
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
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