Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fbad24305b (0.08 sec)

  1. test/escape5.go

    	runtime.KeepAlive(&x)
    }
    
    // Test for issue 24305 (passing to unnamed receivers does not escape).
    type U int
    
    func (*U) M()   {}
    func (_ *U) N() {}
    
    func fbad24305a() {
    	var u U
    	u.M()
    	u.N()
    }
    
    func fbad24305b() {
    	var u U
    	(*U).M(&u)
    	(*U).N(&u)
    }
    
    // Issue 24730: taking address in a loop causes unnecessary escape
    type T24730 struct {
    	x [64]byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top