1 // Copyright 2021 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
14 p = (int *)malloc(5*sizeof(int));
15 for (i = 0; i < 5; i++) {
29 q5 := (*C.int)(unsafe.Add(unsafe.Pointer(a), 4*5))
30 // Access to C pointer out of bounds.
32 // We shouldn't get here; asan should stop us first.
33 fmt.Printf("q5: %d, %x\n", *q5, q5)