xref: /PHP-8.1/ext/opcache/tests/jit/jmpz_002.phpt (revision cd45bd0a)
1--TEST--
2JIT JMPZ: Separate JMPZ for "smart branch" may be only emitted by function JIT
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($b) {
12    if ($b ? 0 : (X>0)){
13        echo "Not taken\n";
14    }
15}
16test(true);
17?>
18DONE
19--EXPECT--
20DONE
21