mirror of https://github.com/golang/go.git
When cgo writes a _cgoCheckPointerN function to handle unsafe.Pointer,
use the function's argument type rather than interface{}. This permits
type errors to be detected at build time rather than run time.
Fixes #13830.
Change-Id: Ic7090905e16b977e2379670e0f83640dc192b565
Reviewed-on: https://go-review.googlesource.com/23675
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
|
||
|---|---|---|
| .. | ||
| err1.go | ||
| err2.go | ||
| err3.go | ||
| issue7757.go | ||
| issue8442.go | ||
| issue11097a.go | ||
| issue11097b.go | ||
| issue13129.go | ||
| issue13423.go | ||
| issue13635.go | ||
| issue13830.go | ||
| issue14669.go | ||
| ptr.go | ||
| test.bash | ||