Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRaceInterCall2 (0.22 sec)

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

    	c := make(chan bool, 1)
    	p := InterImpl{}
    	var x Inter = p
    	go func() {
    		p2 := InterImpl{}
    		x = p2
    		c <- true
    	}()
    	x.Foo(0)
    	<-c
    }
    
    func TestRaceInterCall2(t *testing.T) {
    	c := make(chan bool, 1)
    	p := InterImpl{}
    	var x Inter = p
    	z := 0
    	go func() {
    		z = 42
    		c <- true
    	}()
    	x.Foo(z)
    	<-c
    }
    
    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