Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRaceIfaceConv (0.11 sec)

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

    		go func(x any) {
    		}(v)
    		c <- true
    	}()
    	v = 42
    	<-c
    }
    
    type OsFile struct{}
    
    func (*OsFile) Read() {
    }
    
    type IoReader interface {
    	Read()
    }
    
    func TestRaceIfaceConv(t *testing.T) {
    	c := make(chan bool)
    	f := &OsFile{}
    	go func() {
    		go func(x IoReader) {
    		}(f)
    		c <- true
    	}()
    	f = &OsFile{}
    	<-c
    }
    
    func TestRaceError(t *testing.T) {
    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