]> Cypherpunks.ru repositories - gostls13.git/blob - misc/cgo/testplugin/testdata/unnamed2/main.go
35e9f381f9ced830b2f691348c29b087a9fa21b3
[gostls13.git] / misc / cgo / testplugin / testdata / unnamed2 / main.go
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 //go:build ignore
6 // +build ignore
7
8 package main
9
10 // // No C code required.
11 import "C"
12
13 func FuncInt() int { return 2 }
14
15 func FuncRecursive() X { return X{} }
16
17 type Y struct {
18         X *X
19 }
20 type X struct {
21         Y Y
22 }
23
24 func main() {}