Fix crash when exiting TUI with gdb -tui
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.go / global-local-var-shadow.go
1 package main
2
3 import "fmt"
4
5 var st = "We shall"
6
7 func 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 }
This page took 0.030307 seconds and 4 git commands to generate.