repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Disallow declarations outside of the global scope.
[hiphop-php.git]
/
hphp
/
test
/
slow
/
inout
/
interp-callm
/
tests
/
closure.php
blob
3cd25161cec8ac7e1a1933013ce303be21c7060a
1
<
?hh
/* @generated by make_suite.sh */
2
3
function
main
(
$cl1
) {
4
$cl2
= (
inout
$x
) ==> {
5
$x
=
5
;
6
return
6
;
7
};
8
$cl3
=
function
(&
$x
) {
9
$x
=
6
;
10
return
7
;
11
};
12
13
$x
=
null
;
14
var_dump
(
$cl1
(
inout
$x
),
$x
,
$cl2
(&
$x
),
$x
,
$cl3
(
inout
$x
),
$x
);
15
}
16
17
main
((
inout
$x
) ==> {
18
$x
=
4
;
19
return
5
;
20
});