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