Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRaceNestedArrayCopy (0.27 sec)

  1. src/runtime/race/testdata/mop_test.go

    	ch := make(chan bool, 1)
    	var a [5]int
    	go func() {
    		a[3] = 1
    		ch <- true
    	}()
    	a = [5]int{1, 2, 3, 4, 5}
    	<-ch
    }
    
    // Blows up a naive compiler.
    func TestRaceNestedArrayCopy(t *testing.T) {
    	ch := make(chan bool, 1)
    	type (
    		Point32   [2][2][2][2][2]Point
    		Point1024 [2][2][2][2][2]Point32
    		Point32k  [2][2][2][2][2]Point1024
    		Point1M   [2][2][2][2][2]Point32k
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 16:46:25 UTC 2023
    - 28.9K bytes
    - Viewed (0)
Back to top