mirror of
https://github.com/golang/go
synced 2024-11-23 09:10:08 -07:00
2463a49ebb
Here we restrict using cgo builtin references because internally they're go functions as opposed to C usafe.Pointer values. Fixes #18889 Change-Id: I1e4332e4884063ccbaf9772c172d4462ec8f3d13 Reviewed-on: https://go-review.googlesource.com/40934 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
8 lines
70 B
Go
8 lines
70 B
Go
package main
|
|
|
|
import "C"
|
|
|
|
func main() {
|
|
_ = C.malloc // ERROR HERE
|
|
}
|