3 // Copyright 2021 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
15 p0 := unsafe.Pointer(&buf[0])
16 p1 := unsafe.Pointer(&buf[1])
18 if p := unsafe.Add(p0, uint8(i)); p != p1 {
19 println("FAIL:", p, "!=", p1)
26 if p := unsafe.Add(p0, x); p != p1 {
27 println("FAIL:", p, "!=", p1)