1--TEST--
2Int enum invalid const expr
3--FILE--
4<?php
5
6enum Foo: int {
7    case Bar = 1 + $x;
8}
9
10var_dump(Foo::Bar->value);
11
12?>
13--EXPECTF--
14Fatal error: Constant expression contains invalid operations in %s on line %d
15