- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for buf4$ (0.05 sec)
-
src/bufio/bufio_test.go
t.Errorf("buf3 = %q; want bar", buf3.String()) } // Wrap a writer and then Reset to that writer. w.Reset(&buf4) w2 := NewWriter(w) w2.WriteString("recur") w2.Flush() if buf4.String() != "recur" { t.Errorf("buf4 = %q, want %q", buf4.String(), "recur") } w.Reset(&buf5) w2.Reset(w) w2.WriteString("recur2") w2.Flush() if buf5.String() != "recur2" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
test/escape2.go
func G() { var buf1 [10]byte F1(buf1[:]) var buf2 [10]byte // ERROR "moved to heap: buf2$" F2(buf2[:]) var buf3 [10]byte F3(buf3[:]) var buf4 [10]byte // ERROR "moved to heap: buf4$" F4(buf4[:]) } type Tm struct { x int } func (t *Tm) M() { // ERROR "t does not escape$" } func foo141() { var f func()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
test/escape2n.go
func G() { var buf1 [10]byte F1(buf1[:]) var buf2 [10]byte // ERROR "moved to heap: buf2$" F2(buf2[:]) var buf3 [10]byte F3(buf3[:]) var buf4 [10]byte // ERROR "moved to heap: buf4$" F4(buf4[:]) } type Tm struct { x int } func (t *Tm) M() { // ERROR "t does not escape$" } func foo141() { var f func()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0)