xref: /PHP-8.1/ext/opcache/tests/jit/mul_007.phpt (revision 64915775)
1--TEST--
2JIT MUL: 007 incorrect optimization
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 test() {
12    1.5%2%2%2/2%2;
13}
14test();
15?>
16DONE
17--EXPECTF--
18Deprecated: Implicit conversion from float 1.5 to int loses precision in %smul_007.php on line 3
19
20Deprecated: Implicit conversion from float 0.5 to int loses precision in %smul_007.php on line 3
21DONE