mirror of
https://github.com/golang/go
synced 2024-11-11 19:21:37 -07:00
283d8a3d53
Updates #47651 Updates #48665 Change-Id: I69a87b45a5cad7a07fbd855040cd9935cf874554 Reviewed-on: https://go-review.googlesource.com/c/go/+/358454 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
22 lines
346 B
Go
22 lines
346 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"./c"
|
|
)
|
|
|
|
func main() {
|
|
x := c.F()
|
|
p := c.P()
|
|
t := reflect.PointerTo(reflect.TypeOf(x))
|
|
tp := reflect.TypeOf(p)
|
|
if t != tp {
|
|
panic("FAIL")
|
|
}
|
|
}
|