File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -71,5 +71,6 @@ func TestGCC68255(t *testing.T) { testGCC68255(t) }
71
71
func TestCallGoWithString (t * testing.T ) { testCallGoWithString (t ) }
72
72
func Test14838 (t * testing.T ) { test14838 (t ) }
73
73
func Test8756 (t * testing.T ) { test8756 (t ) }
74
+ func Test17065 (t * testing.T ) { test17065 (t ) }
74
75
75
76
func BenchmarkCgoCall (b * testing.B ) { benchCgoCall (b ) }
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments