- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoRaceComp2 (0.27 sec)
-
src/runtime/race/testdata/comp_test.go
} type S struct { s1, s2 P } func TestNoRaceComp(t *testing.T) { c := make(chan bool, 1) var s S go func() { s.s2.x = 1 c <- true }() s.s2.y = 2 <-c } func TestNoRaceComp2(t *testing.T) { c := make(chan bool, 1) var s S go func() { s.s1.x = 1 c <- true }() s.s1.y = 2 <-c } func TestRaceComp(t *testing.T) { c := make(chan bool, 1) var s S
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.3K bytes - Viewed (0)