xref: /PHP-7.4/Zend/tests/declare_006.phpt (revision d679f022)
1--TEST--
2Use of non-literals in declare ticks values crashes compiler
3--FILE--
4<?php
5declare(ticks = UNKNOWN_CONST) {
6  echo 'Done';
7}
8--EXPECTF--
9Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2
10