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

import "swigtests/grouping"

func main() {
	x := grouping.Test1(42)
	if x != 42 {
		panic(0)
	}

	grouping.Test2(42)

	x = grouping.Do_unary(37, grouping.NEGATE)
	if x != -37 {
		panic(0)
	}

	grouping.SetTest3(42)
}