aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/lang/go/expressions/main.go
blob: c8b97fe07d7d3bec5eb9c24ce50954726bff986c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main

import "fmt"

type myStruct struct {
    a, b int
}

var myGlobal = 17

func myFunc(i interface{}) {
    a := [...]int{8, 9, 10}
    b := a[:]
    x := 22
    fmt.Println(a, b, x, i, myGlobal)  // Set breakpoint here.
}

func main() {
    s := myStruct {2, -1}
    myFunc(s)
}