v4 / vlib / v / checker / tests / goto_label.out
77 lines · 77 sloc · 3.14 KB · 1512486d01d4205e7b67ebd679238fa45cd348af
Raw
1vlib/v/checker/tests/goto_label.vv:8:9: warning: `goto` requires `unsafe` (consider using labelled break/continue)
2 6 | goto a1
3 7 | _ = fn () {
4 8 | goto f1 // the `f1` label is not available here; it is in the outer scope
5 | ~~
6 9 | goto f2 // same with `f2`
7 10 | goto a1 // this is ok
8vlib/v/checker/tests/goto_label.vv:9:9: warning: `goto` requires `unsafe` (consider using labelled break/continue)
9 7 | _ = fn () {
10 8 | goto f1 // the `f1` label is not available here; it is in the outer scope
11 9 | goto f2 // same with `f2`
12 | ~~
13 10 | goto a1 // this is ok
14 11 | a1:
15vlib/v/checker/tests/goto_label.vv:10:9: warning: `goto` requires `unsafe` (consider using labelled break/continue)
16 8 | goto f1 // the `f1` label is not available here; it is in the outer scope
17 9 | goto f2 // same with `f2`
18 10 | goto a1 // this is ok
19 | ~~
20 11 | a1:
21 12 | goto a1
22vlib/v/checker/tests/goto_label.vv:12:9: warning: `goto` requires `unsafe` (consider using labelled break/continue)
23 10 | goto a1 // this is ok
24 11 | a1:
25 12 | goto a1
26 | ~~
27 13 | }
28 14 | f2:
29vlib/v/checker/tests/goto_label.vv:6:8: error: unknown label `a1`
30 4 | goto f2
31 5 | f1:
32 6 | goto a1
33 | ~~
34 7 | _ = fn () {
35 8 | goto f1 // the `f1` label is not available here; it is in the outer scope
36vlib/v/checker/tests/goto_label.vv:8:9: error: unknown label `f1`
37 6 | goto a1
38 7 | _ = fn () {
39 8 | goto f1 // the `f1` label is not available here; it is in the outer scope
40 | ~~
41 9 | goto f2 // same with `f2`
42 10 | goto a1 // this is ok
43vlib/v/checker/tests/goto_label.vv:9:9: error: unknown label `f2`
44 7 | _ = fn () {
45 8 | goto f1 // the `f1` label is not available here; it is in the outer scope
46 9 | goto f2 // same with `f2`
47 | ~~
48 10 | goto a1 // this is ok
49 11 | a1:
50vlib/v/checker/tests/goto_label.vv:15:8: error: unknown label `a1`
51 13 | }
52 14 | f2:
53 15 | goto a1
54 | ~~
55 16 | goto f1 // back
56 17 | goto f2
57vlib/v/checker/tests/goto_label.vv:25:8: error: unknown label `f1`
58 23 | goto g1 // forward
59 24 | g1:
60 25 | goto f1
61 | ~~
62 26 | goto a1
63 27 | goto g1 // back
64vlib/v/checker/tests/goto_label.vv:26:8: error: unknown label `a1`
65 24 | g1:
66 25 | goto f1
67 26 | goto a1
68 | ~~
69 27 | goto g1 // back
70 28 | goto undefined
71vlib/v/checker/tests/goto_label.vv:28:8: error: unknown label `undefined`
72 26 | goto a1
73 27 | goto g1 // back
74 28 | goto undefined
75 | ~~~~~~~~~
76 29 | }
77 30 | }
78