convert ***sort builtins to use inout instead of references
[hiphop-php.git] / hphp / test / quick / stack_overflow.php
blobf14e134a5e344ef1e984b424a1839bb974316c3d
1 <?hh
3 abstract final class StackOverflow { public static $g; }
5 StackOverflow::$g = array(1,2,3);
6 function cmp($a, $b) {
7 $g = StackOverflow::$g;
8 usort(inout $g, fun('cmp'));
9 StackOverflow::$g = $g;
10 fiz();
13 cmp(0, 0);
15 function fiz() {
16 var_dump(1);