diff options
Diffstat (limited to 'libgo/misc/cgo/testplugin/unnamed2.go')
-rw-r--r-- | libgo/misc/cgo/testplugin/unnamed2.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/misc/cgo/testplugin/unnamed2.go b/libgo/misc/cgo/testplugin/unnamed2.go index 55070d5e9f7..7ef66109c5c 100644 --- a/libgo/misc/cgo/testplugin/unnamed2.go +++ b/libgo/misc/cgo/testplugin/unnamed2.go @@ -9,4 +9,13 @@ import "C" func FuncInt() int { return 2 } +func FuncRecursive() X { return X{} } + +type Y struct { + X *X +} +type X struct { + Y Y +} + func main() {} |