github.com/MangoDowner/go-gm@v0.0.0-20180818020936-8baa2bd4408c/misc/cgo/test/issue17065.go (about) 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. 4 5 package cgotest 6 7 /* 8 // Test that C symbols larger than a page play nicely with the race detector. 9 // See issue 17065. 10 11 int ii[65537]; 12 */ 13 import "C" 14 15 import ( 16 "runtime" 17 "testing" 18 ) 19 20 var sink C.int 21 22 func test17065(t *testing.T) { 23 if runtime.GOOS == "darwin" { 24 t.Skip("broken on darwin; issue 17065") 25 } 26 for i := range C.ii { 27 sink = C.ii[i] 28 } 29 }