Arquivos
hhvm/hphp/test/quick/EmitSProp.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

49 linhas
620 B
PHP

<?php
function g() {
$c::$x;
$c::$x[0];
$c::$x->prop[0];
$y = $c::$x;
$y = $c::$x[0];
$y = $c::$x->prop[0];
$c::$x = 1;
$c::$x[0] = 1;
$c::$x->prop[0] = 1;
c::$x++;
c::$x[0]++;
c::$x->prop[0]++;
++c::$x;
++c::$x[0];
++c::$x->prop[0];
c::$x += 1;
c::$x[0] += 1;
c::$x->prop[0] += 1;
isset(c::$x);
isset(c::$x[0]);
isset(c::$x->prop[0]);
empty(c::$x);
empty(c::$x[0]);
empty(c::$x->prop[0]);
f(c::$x);
f(c::$x[0]);
f(c::$x->prop[0]);
$c::$a =& $x;
$c::$a[0] =& $x;
$c::$a->prop[0] =& $x;
$x =& $c::$a;
$x =& $c::$a[0];
$x =& $c::$a->prop[0];
}