Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for tSPPi (0.03 sec)

  1. test/escape_struct_param1.go

    }
    
    func (u *U) SPP() **string { // ERROR "leaking param: u to result ~r0 level=1$"
    	return u._spp
    }
    
    func (u *U) SPPi() *string { // ERROR "leaking param: u to result ~r0 level=2$"
    	return *u._spp
    }
    
    func tSPPi() {
    	s := "cat" // ERROR "moved to heap: s$"
    	ps := &s
    	pps := &ps
    	pu := &U{ps, pps} // ERROR "&U{...} does not escape$"
    	Ssink = pu.SPPi()
    }
    
    func tiSPP() {
    	s := "cat" // ERROR "moved to heap: s$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  2. test/escape_struct_param2.go

    }
    
    func (u U) SPP() **string { // ERROR "leaking param: u to result ~r0 level=0$"
    	return u._spp
    }
    
    func (u U) SPPi() *string { // ERROR "leaking param: u to result ~r0 level=1$"
    	return *u._spp
    }
    
    func tSPPi() {
    	s := "cat" // ERROR "moved to heap: s$"
    	ps := &s
    	pps := &ps
    	pu := &U{ps, pps} // ERROR "&U{...} does not escape$"
    	Ssink = pu.SPPi()
    }
    
    func tiSPP() {
    	s := "cat" // ERROR "moved to heap: s$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 8.9K bytes
    - Viewed (0)
Back to top