mirror of
https://github.com/golang/go
synced 2024-11-23 05:40:04 -07:00
1c1e517005
This CL adds a test for gccgo bug #32901: not all the type descriptors are registered and thus deduplicated with types created by reflection. It needs a few levels of indirect imports to trigger this bug. Updates #32901. Change-Id: Idbd89bedd63fea746769f2687f3f31c9767e5ec0 Reviewed-on: https://go-review.googlesource.com/c/go/+/184718 Reviewed-by: Ian Lance Taylor <iant@golang.org>
18 lines
346 B
Go
18 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 c
|
|
|
|
import "./b"
|
|
|
|
func F() interface{} {
|
|
go func(){}() // make it non-inlineable
|
|
return b.F()
|
|
}
|
|
|
|
func P() interface{} {
|
|
go func(){}() // make it non-inlineable
|
|
return b.P()
|
|
}
|