Updating submodules
[hiphop-php.git] / hphp / test / slow / phi-two-frame-pointers.php
blob666d7e5e1bd423bf3817e0d5e09c31ef2e5606d3
1 <?hh
3 <<__NEVER_INLINE>>
4 function mixed_value($x) {
5 if ($x === 'null') return null;
6 if ($x === 'varray') return varray['value'];
7 if ($x === 'darray') return darray[0 => 'value'];
10 function nesting_level_1($x) {
11 return mixed_value($x)[0];
14 function nesting_level_0($x) {
15 return nesting_level_1($x);
18 <<__NEVER_INLINE>>
19 function test($x) {
20 var_dump(nesting_level_0($x));
23 <<__EntryPoint>>
24 function main() {
25 test('null');
26 test('null');
27 test('varray');