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
fix refcounting in genConcat
[hiphop-php.git]
/
hphp
/
test
/
slow
/
variadic-inline.php
blob
6082cd1b0d93d1929a9e855c67c93a9f0608a775
1
<
?hh
2
3
<<
__ALWAYS_INLINE
>>
4
function
varargs
(
int
$one
,
bool
$two
, ...
$three
) :
mixed
{
5
return
$three
[
2
];
6
}
7
8
<<
__NEVER_INLINE
>>
9
function
bar
() :
mixed
{
10
echo
varargs
(
2
,
false
,
'alpha'
,
new
stdClass
,
'gamma'
,
new
Exception
).
"
\n
"
;
11
}
12
13
<<
__EntryPoint
>>
14
function
main
() :
mixed
{
15
bar
();
bar
();
bar
();
bar
();
16
}