1 // Copyright 2015 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.
10 void f(int32_t *p, int n) {
13 for (i = 0; i < n; i++) {
27 a := make([]int32, 10)
28 C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a)))
31 fmt.Printf("bad %d: %v\n", i, a)