File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -777,7 +777,6 @@ pub fn (mut g Gen) call_fn(node ast.CallExpr) {
777
777
if ! n.contains ('.' ) {
778
778
n = 'main.$n '
779
779
}
780
- eprintln ('call fn ($n )' )
781
780
addr := g.fn_addr[n]
782
781
if addr == 0 {
783
782
// g.warning('fn addr of `$name` = 0')
Original file line number Diff line number Diff line change @@ -468,8 +468,7 @@ fn (mut g Gen) stmt(node ast.Stmt) {
468
468
g.mov64 (.rax, e0 .val.int ())
469
469
}
470
470
ast.InfixExpr {
471
- // TODO
472
- // verror('expr')
471
+ g.infix_expr (e0 )
473
472
}
474
473
ast.CastExpr {
475
474
g.mov64 (.rax, e0 .expr.str ().int ())
@@ -482,7 +481,6 @@ fn (mut g Gen) stmt(node ast.Stmt) {
482
481
}
483
482
ast.Ident {
484
483
g.expr (e0 )
485
- eprintln ('ident $e0.name ' )
486
484
}
487
485
else {
488
486
g.n_error ('unknown return type $e0.type_name ()' )
Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ fn sumcall2(a int, b int) int {
10
10
fn main() {
11
11
r := sumcall (1,2)
12
12
assert r == 3
13
- /*
14
- // XXX not yet working
13
+
15
14
s := sumcall2 (1,2)
16
- assert r == 3
17
- */
15
+ assert s == 3
16
+
18
17
exit(0)
19
18
}
You can’t perform that action at this time.
0 commit comments