Silence ARI for valid calls to abort
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.go / types.go
CommitLineData
a766d390
DE
1package main
2
3import "fmt"
4
5// Self-referential type.
6type T *T
7
8// Mutually recursive types.
9type T1 *T2
10type T2 *T1
11
12// Mutually recursive struct types.
13type S1 struct { p_s2 *S2 }
14type S2 struct { p_s1 *S1 }
15
16func main () {
17 fmt.Println ("Shall we?")
18 var t T
19 fmt.Println (t)
20 var s1 S1
21 var s2 S2
22 fmt.Println (s1)
23 fmt.Println (s2)
24}
This page took 0.883727 seconds and 4 git commands to generate.