Initial pass at Go language support.
[binutils-gdb.git] / gdb / testsuite / gdb.go / hello.go
1 package main
2
3 import "fmt"
4
5 var myst = "Shall we?"
6
7 func main () {
8 fmt.Println ("Before assignment") // set breakpoint 1 here
9 st := "Hello, world!" // this intentionally shadows the global "st"
10 fmt.Println (st) // set breakpoint 2 here
11 fmt.Println (myst) // set breakpoint 2 here
12 }