Remove FPass[CV]Nop opcodes
[hiphop-php.git] / hphp / test / quick / hhas_fc_enum.hhas
blob22c1478c2fdb5bc5f634f55efe4c7ed4b263ac00
1 # Test out making enums
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
17 .function test(<"Foo" "Foo" hh_type> $x) {
18   VerifyParamType $x
19   Null
20   RetC
23 .class [enum final] Foo extends HH\BuiltinEnum {
24   .enum_ty <"HH\\int" hh_type extended_hint>;
26   .const FOO = """i:1;""";
27   .default_ctor;