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.
7 // Check that writes to Go allocated memory, with Go synchronization,
8 // do not look like a race.
11 #cgo CFLAGS: -fsanitize=thread
12 #cgo LDFLAGS: -fsanitize=thread
28 c
:= make(chan []C
.char
, 100)
29 for i
:= 0; i
< 10; i
++ {
33 for i
:= 0; i
< 100; i
++ {
34 c
<- make([]C
.char
, 4096)
40 for i
:= 0; i
< 100; i
++ {