summaryrefslogtreecommitdiffstats
path: root/src/cmd/compile/internal/ssa/testdata/inline-dump.go
blob: 97893b6f212f986b9931fd5f678759b6e0ded95d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package foo

func f(m, n int) int {
	a := g(n)
	b := g(m)
	return a + b
}

func g(x int) int {
	y := h(x + 1)
	z := h(x - 1)
	return y + z
}

func h(x int) int {
	return x * x
}