xref: /PHP-8.1/ext/opcache/tests/jit/inc_obj_003.phpt (revision 6ab36fb6)
1--TEST--
2PRE_INC_OBJ: 003
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
11class Test {
12    public float $prop = 1.0;
13}
14$test = new Test;
15$r = &$test->prop;
16$v = --$test->prop;
17var_dump($v);
18?>
19--EXPECT--
20float(0)