- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNoRaceStackPushPop (0.13 sec)
-
src/runtime/race/testdata/regression_test.go
} type stack []int func (s *stack) push(x int) { *s = append(*s, x) } func (s *stack) pop() int { i := len(*s) n := (*s)[i-1] *s = (*s)[:i-1] return n } func TestNoRaceStackPushPop(t *testing.T) { var s stack go func(s *stack) {}(&s) s.push(1) x := s.pop() _ = x } type RpcChan struct { c chan bool } var makeChanCalls int //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 03 02:01:34 UTC 2015 - 2.7K bytes - Viewed (0)