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 5package cgotest 6 7/* 8// Test that C symbols larger than a page play nicely with the race detector. 9// See issue 17065. 10 11int ii[65537]; 12*/ 13import "C" 14 15import ( 16 "runtime" 17 "testing" 18) 19 20var sink C.int 21 22func 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} 30