xref: /PHP-7.0/Zend/tests/declare_006.phpt (revision 868930e0)
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--
9
10Fatal error: declare(ticks) value must be a literal in %sdeclare_006.php on line 2
11