]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: reject references to builtin functions other than calls
authorAlexander Menzhinsky <amenzhinsky@gmail.com>
Mon, 17 Apr 2017 21:13:59 +0000 (16:13 -0500)
committerIan Lance Taylor <iant@golang.org>
Tue, 18 Apr 2017 22:14:43 +0000 (22:14 +0000)
commit2463a49ebb5e3b065609555ca81757b30062d912
treeb545ffb7e10f695edddc22941162bf7d0fefc539
parent743fe0697d88cfc359662fc7f10b420ba0a913c2
cmd/cgo: reject references to builtin functions other than calls

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>
misc/cgo/errors/issue18889.go [new file with mode: 0644]
misc/cgo/errors/test.bash
src/cmd/cgo/gcc.go