- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for efaceEscape0 (0.09 sec)
-
test/escape_iface.go
} func mdoesnotescape(m M) { // ERROR "m does not escape" } // Tests for type stored directly in iface and with value receiver method. type M0 struct { p *int } func (M0) M() { } func efaceEscape0() { { i := 0 v := M0{&i} var x M = v _ = x } { i := 0 // ERROR "moved to heap: i" v := M0{&i} var x M = v sink = x } { i := 0 v := M0{&i} var x M = v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 17:16:35 UTC 2023 - 4.5K bytes - Viewed (0)