summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/struct_value_runme.go
blob: d0b60bd23c17fc6fe01414f4f42c40d781f6fcd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import "./struct_value"

func main() {
	b := struct_value.NewBar()

	b.GetA().SetX(3)
	if b.GetA().GetX() != 3 {
		panic(0)
	}

	b.GetB().SetX(3)
	if b.GetB().GetX() != 3 {
		panic(0)
	}
}