GoPLS Viewer

Home|gopls/go/analysis/passes/cgocall/testdata/src/c/c.go
1// Copyright 2016 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.
4
5// Test the cgo checker on a file that doesn't use cgo.
6
7package c
8
9import "unsafe"
10
11// Passing a pointer (via the slice), but C isn't cgo.
12var _ = C.f(unsafe.Pointer(new([]int)))
13
14var C struct{ f func(interface{}) int }
15
MembersX
unsafe
Members
X