xref: /PHP-7.3/ext/opcache/tests/opt/sccp_016.phpt (revision 9fe6b293)
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
8--SKIPIF--
9<?php require_once('skipif.inc'); ?>
10--FILE--
11<?php
12return isset($undef) || php_sapi_name() == php_sapi_name();
13?>
14--EXPECTF--
15$_main: ; (lines=4, args=0, vars=1, tmps=1)
16    ; (after optimizer)
17    ; %ssccp_016.php:1-4
18L0 (2):     T1 = ISSET_ISEMPTY_CV (isset) CV0($undef)
19L1 (2):     T1 = JMPNZ_EX T1 L3
20L2 (2):     T1 = QM_ASSIGN bool(true)
21L3 (2):     RETURN T1
22