xref: /PHP-8.4/ext/opcache/tests/jit/add_015.phpt (revision 8f5156fc)
1--TEST--
2JIT ADD: 014 incorrect guard elimination
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--FILE--
7<?php
8function test() {
9	$j = 0;
10    for ($i = 0; $i < 41; $i++) {
11        $a &= $a &= $aZ - $a;
12        $aZ = $a;
13        $a &= $a &= $aZ = $a;
14        $aZ = $a;
15        $a = &$a + $e = $a-- +$a &= $a &= $a &= $aZ = $a;
16    }
17}
18@test();
19?>
20DONE
21--EXPECT--
22DONE