1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/ext/opcache/tests/jit/reg_alloc_022.phpt
2024-01-15 09:39:13 +01:00

25 lines
452 B
PHP

--TEST--
Register Alloction 022: Incorrect type assumption
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
--FILE--
<?php
function test() {
$a = $b = $x = 0; $c = null;
for ($i = 0; $i < 20; $i++) {
$x .= $b;
$x = $a ? $b : $c;
$a &= $x != $a ? $b : $c;
$x = $a ? $b : $c;
$a &= $x != $a ? $b : $c;
$x != $a ?: $c;
$a--;
}
}
test();
?>
DONE
--EXPECT--
DONE