dis-bench / src /php /php-src /Zend /tests /enum /backed-int-const-expr.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
250 Bytes
--TEST--
Int enum const expr
--FILE--
<?php
enum Foo: int {
case Bar = 1 << 0;
case Baz = 1 << 1;
case Qux = 1 << 2;
}
var_dump(Foo::Bar->value);
var_dump(Foo::Baz->value);
var_dump(Foo::Qux->value);
?>
--EXPECT--
int(1)
int(2)
int(4)