1--TEST--
2Backed enums can contain magic constants
3--FILE--
4<?php
5
6enum Foo: string {
7    case Bar = __FILE__;
8}
9
10echo Foo::Bar->value, "\n";
11
12?>
13--EXPECTF--
14%smagic-constants.php
15