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
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
inlining
/
1837.php
blob
ca6dfb8067993b7517042ac4c9be428282b81940
1
<
?hh
2
3
/* Compile only: verify no c++ compilation errors */
function
foo
(
$a
) {
4
return
$a
[
1
];
5
}
6
function
baz
(
inout
$x
) {
7
if
(
$x
)
$x
++
;
8
}
9
function
bar
(
$a
) {
10
baz
(
foo
(
$a
)[
1
]);
11
foo
(
$a
)->
bar
=
1
;
12
}
13
14
<<
__EntryPoint
>>
function
main
():
void
{
echo
"Done.
\n
"
; }