summaryrefslogtreecommitdiff
path: root/misc/cgo/test/cthread.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/test/cthread.go')
-rw-r--r--misc/cgo/test/cthread.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/cgo/test/cthread.go b/misc/cgo/test/cthread.go
index d918d033f..bdfd1103d 100644
--- a/misc/cgo/test/cthread.go
+++ b/misc/cgo/test/cthread.go
@@ -35,6 +35,7 @@ func testCthread(t *testing.T) {
t.Skip("testCthread disabled on arm")
}
+ sum.i = 0
C.doAdd(10, 6)
want := 10 * (10 - 1) / 2 * 6