xref: /PHP-8.3/ext/opcache/tests/jit/inc_017.phpt (revision d8696f92)
1--TEST--
2JIT INC: 017
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9;opcache.jit_debug=257
10--EXTENSIONS--
11opcache
12--FILE--
13<?php
14function foo() {
15    $x = true;
16    return ++$x; // reg -> reg, reg
17}
18var_dump(foo());
19?>
20--EXPECTF--
21Warning: Increment on type bool has no effect, this will change in the next major version of PHP in %sinc_017.php on line 4
22bool(true)
23