global statement removal: hphp/test [7/x]
[hiphop-php.git] / hphp / test / quick / silence.hhas
blob3560a5adf2fa32712caece33ad2f9ecfaf754175
1 # Tests that silence ends without silence starts fail the verifier
2 .main {
3   .declvars $z;
4   FPushFuncD 2 "add"
5   Int 3
6   Int 2
7   FCall <> 2 1 "" - "" ""
8   Silence $z Start
9   SetL $z
10   Silence $z End
11   Silence _10 Start
12   SetL _10
13   Silence _10 End
14   PopC
15   Int 0
16   CGetL2 $z
17   Gt
18   Silence _1 Start
19   Silence _2 Start
20   Silence _3 Start
21   Silence _4 Start
22   Silence _8 Start
23   Silence _9 Start
24   JmpNZ L0
25   Silence _5 Start
26   Silence _3 End
27   Silence _8 End
28   FPushFuncD 1 "var_dump"
29   Int 1
30   FCall <> 1 1 "" - "" ""
31   PopC
32   Jmp L1
33 L0:
34   Silence _6 Start
35   Silence _2 End
36   Silence _9 End
37   FPushFuncD 1 "var_dump"
38   Int 2
39   FCall <> 1 1 "" - "" ""
40   PopC
41 L1:
42   Silence _1 End
43   Silence _5 End
44   Silence _6 End
45   Silence _7 End
46   Silence _8 End
47   Silence _9 End
48   Int 1
49   RetC
52 .function <"" N  > add($x, $y) {
53   CGetL $y
54   CGetL2 $x
55   AddO
56   RetC