Sign in
fuchsia
/
third_party
/
binutils-gdb
/
refs/heads/upstream/gdb-16-branch
/
.
/
gdb
/
testsuite
/
gdb.go
/
global-local-var-shadow.go
blob: 73f39446ddf630c966637d8f8ed315ea2b6e99cc [
file
] [
log
] [
blame
] [
edit
]
package main
import "fmt"
var st = "We shall"
func main () {
fmt.Println ("Before assignment")
st := "Hello, world!"
// this intentionally shadows the global "st"
fmt.Println (st)
// set breakpoint 1 here
}