github.com/likebike/go--@v0.0.0-20190911215757-0bd925d16e96/go/src/cmd/vet/testdata/cgo/cgo4.go (about) 1 // Copyright 2017 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, but has an 6 // import named "C". 7 8 package testdata 9 10 import C "fmt" 11 12 var _ = C.Println(*p(**p)) 13 14 // Passing a pointer (via a slice), but C is fmt, not cgo. 15 var _ = C.Println([]int{3})