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

import "swigtests/preproc"

func main() {
	if preproc.GetEndif() != 1 {
		panic(0)
	}

	if preproc.GetDefine() != 1 {
		panic(0)
	}

	if preproc.GetDefined() != 1 {
		panic(0)
	}

	if 2*preproc.One != preproc.Two {
		panic(0)
	}
}