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
Add trivial entry points to various tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
tests
/
classes
/
clone_005.php
blob
8af8ebba409c18c3b65a118f5772e4d05d913d57
1
<
?hh
2
abstract class
base
{
3
public
$a
=
'base'
;
4
5
// disallow cloning once forever
6
final private function
__clone
() {}
7
}
8
9
class
test
extends
base
{
10
// reenabling should fail
11
public function
__clone
() {}
12
}
13
14
<<
__EntryPoint
>>
15
function
main
():
void
{
16
echo
"Done.
\n
"
;
17
}