aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.go/integers.go
blob: 4430099952b9063cad85474fdb558140e7bbe5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

var i = 0
var j = 0
var k = 0
var l = 0

func main () {
  i = 0
  j = 0
  k = 0
  l = 0 // set breakpoint 1 here
  i = 1
  j = 2
  k = 3
  l = k

  i = j + k

  j = 0 // set breakpoint 2 here
  k = 0
}