xref: /PHP-8.1/ext/opcache/tests/jit/assign_050.phpt (revision 54c952f1)
1--TEST--
2JIT ASSIGN: incorrect type store elimination
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11function foo($a) {
12    $b = $a;
13    $b =! $a = $a + $b & $b & $b = $b = $a = $a + $b & $a += $a;
14    $b = $b = $a = $a + $b & $b & $b = $a = $a + $b = $b = $a = $a + $b = $a += $a;
15}
16
17for ($i = 0; $i < 3; $i++) {
18    @foo(39087589046889428661);
19}
20?>
21DONE
22--EXPECT--
23DONE
24