xref: /netbsd-src/external/gpl3/gdb/dist/gdb/testsuite/gdb.go/global-local-var-shadow.go (revision eceb233b9bd0dfebb902ed73b531ae6964fa3f9b)
1package main
2
3import "fmt"
4
5var st = "We shall"
6
7func main () {
8  fmt.Println ("Before assignment")
9  st := "Hello, world!" // this intentionally shadows the global "st"
10  fmt.Println (st) // set breakpoint 1 here
11}
12