Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCmpIfaceConcreteAlloc (0.29 sec)

  1. src/runtime/iface_test.go

    func (T64) Method1()    {}
    func (Tstr) Method1()   {}
    func (Tslice) Method1() {}
    
    var (
    	e  any
    	e_ any
    	i1 I1
    	i2 I2
    	ts TS
    	tm TM
    	tl TL
    	ok bool
    )
    
    // Issue 9370
    func TestCmpIfaceConcreteAlloc(t *testing.T) {
    	if runtime.Compiler != "gc" {
    		t.Skip("skipping on non-gc compiler")
    	}
    
    	n := testing.AllocsPerRun(1, func() {
    		_ = e == ts
    		_ = i1 == ts
    		_ = e == 1
    	})
    
    	if n > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
Back to top