2016-11-12 04:50:24 -07:00
|
|
|
// Copyright 2016 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
|
|
|
|
|
|
|
|
// // No C code required.
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
func FuncInt() int { return 1 }
|
|
|
|
|
2018-10-06 00:10:25 -06:00
|
|
|
// Add a recursive type to check that type equality across plugins doesn't
|
2017-04-10 20:33:27 -06:00
|
|
|
// crash. See https://golang.org/issues/19258
|
|
|
|
func FuncRecursive() X { return X{} }
|
|
|
|
|
|
|
|
type Y struct {
|
|
|
|
X *X
|
|
|
|
}
|
|
|
|
type X struct {
|
|
|
|
Y Y
|
|
|
|
}
|
|
|
|
|
2016-11-12 04:50:24 -07:00
|
|
|
func main() {}
|