github.com/yukk001/go1.10.8@v0.0.0-20190813125351-6df2d3982e20/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() {}