We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version go version go1.17.1 linux/amd64
Yes
package main import "fmt" type T struct{a, b, c, d float32} func AddPP_P(x, y *T) *T { var z T z.a = x.a + y.a z.b = x.b + y.b z.c = x.c + y.c z.d = x.d + y.d return &z } func main() { var a, b T // inlining call to AddPP_P var c = AddPP_P(&a, &b) // moved to heap: z fmt.Println(c) }
no escapes
One escape.
The text was updated successfully, but these errors were encountered:
Sorry, it looks the escape is caused by fmt.Println.
fmt.Println
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
no escapes
What did you see instead?
One escape.
The text was updated successfully, but these errors were encountered: