Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CALLclosure (0.12 sec)

  1. test/fixedbugs/issue60945.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type S struct{}
    
    func callClosure(closure func()) {
    	closure()
    }
    
    func (s *S) M() {
    	callClosure(func() {
    		defer f(s.m) // prevent closures to be inlined.
    	})
    }
    
    func (s *S) m() {}
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 14:29:16 UTC 2023
    - 388 bytes
    - Viewed (0)
Back to top