xref: /PHP-7.4/ext/opcache/tests/opt/sccp_016.phpt (revision 12edc453)
1--TEST--
2SCCP 016: Used constant instructions should be replaced with QM_ASSIGN
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.opt_debug_level=0x20000
8opcache.preload=
9--SKIPIF--
10<?php require_once('skipif.inc'); ?>
11--FILE--
12<?php
13return isset($undef) || php_sapi_name() == php_sapi_name();
14?>
15--EXPECTF--
16$_main: ; (lines=4, args=0, vars=1, tmps=1)
17    ; (after optimizer)
18    ; %ssccp_016.php:1-4
19L0 (2):     T1 = ISSET_ISEMPTY_CV (isset) CV0($undef)
20L1 (2):     T1 = JMPNZ_EX T1 L3
21L2 (2):     T1 = QM_ASSIGN bool(true)
22L3 (2):     RETURN T1
23