make `Switch` constructor more precise
[hiphop-php.git] / hphp / test / slow / inout-inline.php
blobb8884efa3874ff7a1511532f7a8869dc3f9f64dc
1 <?hh
3 <<__ALWAYS_INLINE>>
4 function foo(inout float $a, inout int $b, inout string $c) {
5 $a += 1;
6 $b += 2;
7 $c = HH\Lib\Legacy_FIXME\cast_for_arithmetic($c);
8 $c += 3;
9 $c = (string)$c;
10 return 4;
13 <<__EntryPoint>>
14 function main() {
15 list($a, $b, $c) = varray[2.0, 3, "5"];
16 var_dump(
17 "one",
18 var_dump(1),
19 "two",
20 foo(inout $a, inout $b, inout $c),
21 "three",
22 (int)$a,
23 $b,
24 (int)$c,