v2 / vlib / v / tests / testdata / trace_calls / simple.vv
25 lines · 18 sloc · 187 bytes · b2ab7a333b1801aae4938847bb4a88174c237c76
Raw
1module main
2
3fn C.test()
4
5struct Boo {}
6
7fn (b Boo) call_1() {}
8
9fn foo() {
10 bar()
11}
12
13fn bar() {
14 baz()
15}
16
17fn baz() {
18 boo := Boo{}
19 boo.call_1()
20}
21
22fn main() {
23 foo()
24 eprintln('end')
25}
26