aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.go/handcall.go
blob: f32b5e9a47307cef75abb3ae77908b13a5398a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

func add (a,b int) (int) {
  return a + b
}

func sub (a,b int) (int) {
  return a - b
}

var v_int int

func main () {
  v_int = 42 // set breakpoint 1 here
}