xref: /PHP-8.1/ext/opcache/tests/jit/add_013.phpt (revision f711c960)
1--TEST--
2JIT ADD: 013 register allocation (incorrect hinting)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10function y(){
11    $j = 2;
12    for (; $a = $j - 7 + $y = $a - 7; $a = $a + 1 / 3) {
13        $j++;
14        if ($j > 4) break;
15    }
16}
17?>
18DONE
19--EXPECT--
20DONE