repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Rename gdb/ChangeLog to gdb/ChangeLog-2021
[binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.go
/
methods.go
blob
563d0e4930d44362425300f1a76424be2bb92900
1
package
main
2
3
import
"fmt"
4
5
type
T
struct
{
i
int
}
6
7
func
(
t T
)
Foo
() {
8
fmt
.
Println
(
t
.
i
)
9
}
10
11
func
(
t
*
T
)
Bar
() {
12
fmt
.
Println
(
t
.
i
)
13
}
14
15
func
main
() {
16
fmt
.
Println
(
"Shall we?"
)
17
var
t T
18
t
.
Foo
()
19
var
pt
=
new
(
T
)
20
pt
.
Bar
()
21
}