- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 5,200 for p$ (0.12 sec)
-
test/escape_param.go
i := 0 // ERROR "moved to heap: i$" var p *int param2(&i, &p) _ = p } func caller2b() { i := 0 // ERROR "moved to heap: i$" var p *int param2(&i, &p) sink = p } func paramArraySelfAssign(p *PairOfPairs) { // ERROR "p does not escape" p.pairs[0] = p.pairs[1] // ERROR "ignoring self-assignment in p.pairs\[0\] = p.pairs\[1\]" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 26 23:50:32 UTC 2021 - 8.9K bytes - Viewed (0) -
test/fixedbugs/issue8004.go
P *[]int } func test2() { var all []T for i := 0; i < 100; i++ { p := new([]int) *p = append(*p, 1, 2, 3, 4) h := (*reflect.SliceHeader)(unsafe.Pointer(p)) all = append(all, T{H: h}, T{P: p}) } runtime.GC() for i := 0; i < 100; i++ { p := *all[2*i+1].P if p[0] != 1 || p[1] != 2 || p[2] != 3 || p[3] != 4 { println("BUG test2: bad slice at index", i, p[0], p[1], p[2], p[3]) return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.1K bytes - Viewed (0) -
src/internal/types/testdata/examples/inference2.go
// from assigning the functions. package p func f1[P any](P) {} func f2[P any]() P { var x P; return x } func f3[P, Q any](P) Q { var x Q; return x } func f4[P any](P, P) {} func f5[P any](P) []P { return nil } func f6[P any](int) P { var x P; return x } func f7[P any](P) string { return "" } // initialization expressions var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 12 18:44:59 UTC 2023 - 3.2K bytes - Viewed (0) -
src/internal/types/testdata/examples/operations.go
// license that can be found in the LICENSE file. package p // indirection func _[P any](p P) { _ = *p // ERROR "cannot indirect p" } func _[P interface{ int }](p P) { _ = *p // ERROR "cannot indirect p" } func _[P interface{ *int }](p P) { _ = *p } func _[P interface{ *int | *string }](p P) { _ = *p // ERROR "must have identical base types" } type intPtr *int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 582 bytes - Viewed (0) -
test/import2.dir/import3.go
func f3(func() func() int) func main() { p.F3(p.F1) p.F3(p.F2()) f3(p.F1) f3(p.F2()) p.C1 = (chan<- (chan int))(nil) p.C2 = (chan (<-chan int))(nil) p.C3 = (<-chan (chan int))(nil) p.C4 = (chan (chan<- int))(nil) p.C5 = (<-chan (<-chan int))(nil) p.C6 = (chan<- (<-chan int))(nil) p.C7 = (chan<- (chan<- int))(nil) p.C8 = (<-chan (<-chan (chan int)))(nil) p.C9 = (<-chan (chan<- (chan int)))(nil)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.3K bytes - Viewed (0) -
src/image/ycbcr.go
} func (p *YCbCr) YCbCrAt(x, y int) color.YCbCr { if !(Point{x, y}.In(p.Rect)) { return color.YCbCr{} } yi := p.YOffset(x, y) ci := p.COffset(x, y) return color.YCbCr{ p.Y[yi], p.Cb[ci], p.Cr[ci], } } // YOffset returns the index of the first element of Y that corresponds to // the pixel at (x, y). func (p *YCbCr) YOffset(x, y int) int { return (y-p.Rect.Min.Y)*p.YStride + (x - p.Rect.Min.X) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 8.7K bytes - Viewed (0) -
test/interface/receiver.go
v.V() // p = t // ERROR var i interface{} = t if _, ok := i.(P); ok { println("dynamic i.(P) succeeded incorrectly") panic("fail") } // println("--struct--"); var s S s.T = 42 s.P() s.V() v = s s.V() p = &s p.P() p.V() v = &s v.V() // p = s // ERROR var j interface{} = s if _, ok := j.(P); ok { println("dynamic j.(P) succeeded incorrectly")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:33:41 UTC 2012 - 1.3K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalarmult_test.go
var p Point p.ScalarMult(dalekScalar, B) if dalekScalarBasepoint.Equal(&p) != 1 { t.Error("Scalar mul does not match dalek") } checkOnCurve(t, &p) } func TestBaseMultVsDalek(t *testing.T) { var p Point p.ScalarBaseMult(dalekScalar) if dalekScalarBasepoint.Equal(&p) != 1 { t.Error("Scalar mul does not match dalek") } checkOnCurve(t, &p) } func TestVarTimeDoubleBaseMultVsDalek(t *testing.T) { var p Point
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/internal/src/xpos.go
func (p XPos) After(q XPos) bool { n, m := p.index, q.index return n > m || n == m && p.lico > q.lico } // WithNotStmt returns the same location to be marked with DWARF is_stmt=0 func (p XPos) WithNotStmt() XPos { p.lico = p.lico.withNotStmt() return p } // WithDefaultStmt returns the same location with undetermined is_stmt func (p XPos) WithDefaultStmt() XPos { p.lico = p.lico.withDefaultStmt()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0) -
test/escape.go
chk(p, q, 11, "select_escapes1") p, q = range_escapes(13), range_escapes(14) chk(p, q, 13, "range_escapes") p, q = range_escapes2(101, 102) chkalias(p, q, 101, "range_escapes2") p, q = for_escapes2(103, 104) chkalias(p, q, 103, "for_escapes2") p, q = for_escapes3(105, 106) chk(p, q, 105, "for_escapes3") _, p = out_escapes(15) _, q = out_escapes(16) chk(p, q, 15, "out_escapes")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 06 18:34:24 UTC 2023 - 3.8K bytes - Viewed (0)