github.com/epfl-dcsl/gotee@v0.0.0-20200909122901-014b35f5e5e9/misc/cgo/testplugin/unnamed2/main.go (about) 1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 // // No C code required. 8 import "C" 9 10 func FuncInt() int { return 2 } 11 12 func FuncRecursive() X { return X{} } 13 14 type Y struct { 15 X *X 16 } 17 type X struct { 18 Y Y 19 } 20 21 func main() {}