github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/go/analysis/passes/cgocall/testdata/src/a/cgo3.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 package a 6 7 // The purpose of this inherited test is unclear. 8 9 import "C" 10 11 const x = 1 12 13 var a, b = 1, 2 14 15 func F() { 16 } 17 18 func FAD(int, string) bool { 19 C.malloc(3) 20 return true 21 }