summaryrefslogtreecommitdiff
path: root/Examples/test-suite/go/director_extend_runme.go
blob: adfb6ddb76ac0d30df924baf4289b685cd8e2fb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test case from bug #1506850 "When threading is enabled, the
// interpreter will infinitely wait on a mutex the second time this
// type of extended method is called.  Attached is an example program
// that waits on the mutex to be unlocked."

package main

import . "swigtests/director_extend"

func main() {
	m := NewSpObject()
	if m.Dummy() != 666 {
		panic("1st call")
	}
	if m.Dummy() != 666 {
		panic("2nd call")
	}
}