1
0
mirror of https://github.com/golang/go synced 2024-11-18 04:34:52 -07:00
go/test/fixedbugs/issue36085.dir/b.go
Cherry Zhang 6f2b8347b1 test: add a test for gccgo compiler bug of missing type descriptor
The gccgo compiler did not generate type descriptor for a pointer
to a type alias defined in another package, causing linking error.
The fix is CL 210787. This CL adds a test.

Updates #36085.

Change-Id: I3237c7fedb4d92fb2dc610ee2b88087f96dc2a1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/210858
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-12-11 19:48:39 +00:00

9 lines
75 B
Go

package main
import "a"
var w a.W
var X interface{} = &w
func main() {}