source: src/router/php7/ext/opcache/tests/ssa_bug_002.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 2 months ago

update php

File size: 198 bytes
Line 
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)
Note: See TracBrowser for help on using the repository browser.