move HQServerTransportFactory to HQServer.h
[hiphop-php.git] / hphp / test / slow / ir_refcount / refcount001.php
blobee054065789fb6da233610eaff20009ab2581ebd
1 <?hh
3 class X {
4 private $rc_prop;
5 function __construct(varray $x) {
6 $this->rc_prop = $x;
8 function thing() :mixed{
9 return $this->rc_prop;
13 function go() :mixed{
14 var_dump((new X(vec[new stdClass]))->thing());
15 var_dump((new X(vec[new stdClass]))->thing());
16 var_dump((new X(vec[new stdClass]))->thing());
17 var_dump((new X(vec[new stdClass]))->thing());
18 var_dump((new X("yoyoyo"))->thing());
22 <<__EntryPoint>>
23 function main_refcount001() :mixed{
24 go();