1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // extern void doAdd(int, int);
33 func testCthread(t
*testing
.T
) {
34 if runtime
.GOOS
== "darwin" && (runtime
.GOARCH
== "arm" || runtime
.GOARCH
== "arm64") {
35 t
.Skip("the iOS exec wrapper is unable to properly handle the panic from Add")
40 want
:= 10 * (10 - 1) / 2 * 6
42 t
.Fatalf("sum=%d, want %d", sum
.i
, want
)