introduce TDF_compare_debug, omit OBJ_TYPE_REF casts with it
[official-gcc.git] / libgo / misc / cgo / test / issue17065.go
blobede30bc3e638de641b67421d6254bd0287fe5d86
1 // Copyright 2016 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.
5 package cgotest
7 /*
8 // Test that C symbols larger than a page play nicely with the race detector.
9 // See issue 17065.
11 int ii[65537];
13 import "C"
15 import (
16 "runtime"
17 "testing"
20 var sink C.int
22 func test17065(t *testing.T) {
23 if runtime.GOOS == "darwin" {
24 t.Skip("broken on darwin; issue 17065")
26 for i := range C.ii {
27 sink = C.ii[i]