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
Remove FPass[CV]Nop opcodes
[hiphop-php.git]
/
hphp
/
test
/
quick
/
hhas_fc_enum.hhas
blob
22c1478c2fdb5bc5f634f55efe4c7ed4b263ac00
1
# Test out making enums
2
3
.main {
4
DefCls 0
5
FPushFuncD 1 "test"
6
ClsCnsD "FOO" "Foo"
7
FCall 1
8
PopR
9
FPushFuncD 1 "test"
10
String "hi"
11
FCall 1
12
PopR
13
Int 1
14
RetC
15
}
16
17
.function test(<"Foo" "Foo" hh_type> $x) {
18
VerifyParamType $x
19
Null
20
RetC
21
}
22
23
.class [enum final] Foo extends HH\BuiltinEnum {
24
.enum_ty <"HH\\int" hh_type extended_hint>;
25
26
.const FOO = """i:1;""";
27
.default_ctor;
28
}