gdb/fortran: Allow for matching symbols with missing scope
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.go / methods.go
CommitLineData
a766d390
DE
1package main
2
3import "fmt"
4
5type T struct { i int }
6
7func (t T) Foo () {
8 fmt.Println (t.i)
9}
10
11func (t *T) Bar () {
12 fmt.Println (t.i)
13}
14
15func main () {
16 fmt.Println ("Shall we?")
17 var t T
18 t.Foo ()
19 var pt = new (T)
20 pt.Bar ()
21}
This page took 0.927127 seconds and 4 git commands to generate.