Commit 0371342c authored by Hugo Moreau's avatar Hugo Moreau

InnerCall: tests added

 * tests/expected,
   tests/multiplecallassign.go, tests/passes/innercall.go : Here.
parent beae35b0
Pipeline #26592 passed with stage
in 2 minutes and 20 seconds
......@@ -9,4 +9,5 @@
#if.go,13,13
#mywhile.go,255,255
#multiple.go,6,6
#multiplecallassign.go,21,21
#prod_cons_simp.go,44,74
package main
import "fmt"
func foo(x int) int {
return x
}
func main() {
a, b := foo(42), foo(42)
fmt.Println(a, b)
a, b = 0, foo(a+1)
fmt.Println(a, b)
}
package main
import (
"fmt"
)
func foo(x int) int {
return x
}
func bar(x, y int) int {
return x + y
}
func main() {
a, b := foo(42), 2
bar(foo(42), 2)
fmt.Println(a + b)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment