1 // Copyright 2015 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 // This program produced false race reports when run under the C/C++
8 // ThreadSanitizer, as it did not understand the synchronization in
12 #cgo CFLAGS: -fsanitize=thread
13 #cgo LDFLAGS: -fsanitize=thread
32 runtime.LockOSThread()
36 runtime.LockOSThread()
41 if v := C.getVal(); v != 2 {