Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    	return *p
    }
    
    type iface interface {
    	Foo() *struct{ b bool }
    }
    
    type Int int
    
    func (i Int) Foo() *struct{ b bool } {
    	return &struct{ b bool }{false}
    }
    
    func TestNoRaceForInfiniteLoop(t *testing.T) {
    	var x Int
    	// interface conversion causes nodes to be put on init list
    	for iface(x).Foo().b {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 03 02:01:34 UTC 2015
    - 2.7K bytes
    - Viewed (0)
Back to top