Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
18 lines
416 B
Go
18 lines
416 B
Go
// 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 . "director_extend"
|
|
|
|
func main() {
|
|
m := NewSpObject()
|
|
if m.Dummy() != 666 {
|
|
panic("1st call")
|
|
}
|
|
if m.Dummy() != 666 {
|
|
panic("2nd call")
|
|
}
|
|
}
|