github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/misc/cgo/errors/issue16116.go (about)

     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  package main
     6  
     7  // void f(void *p, int x) {}
     8  import "C"
     9  
    10  func main() {
    11  	_ = C.f(1) // ERROR HERE
    12  }