Commit 4675e333 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: match gccgo error messages for bug325.go.

bug325.go:13:10: error: invalid indirect of ‘unsafe.Pointer’
bug325.go:14:31: error: reference to field ‘foo’ in object which has no fields or methods

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4313050
parent 7f9acb53
......@@ -11,5 +11,5 @@ import "unsafe"
func main() {
var x unsafe.Pointer
println(*x) // ERROR "invalid indirect.*unsafe.Pointer"
var _ = (unsafe.Pointer)(nil).foo // ERROR "no field or method foo"
var _ = (unsafe.Pointer)(nil).foo // ERROR "foo"
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment