Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 8,475 for FUNC (0.08 sec)

  1. test/escape_closure.go

    package escape
    
    var sink interface{}
    
    func ClosureCallArgs0() {
    	x := 0
    	func(p *int) { // ERROR "p does not escape" "func literal does not escape"
    		*p = 1
    	}(&x)
    }
    
    func ClosureCallArgs1() {
    	x := 0
    	for {
    		func(p *int) { // ERROR "p does not escape" "func literal does not escape"
    			*p = 1
    		}(&x)
    	}
    }
    
    func ClosureCallArgs2() {
    	for {
    		x := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:36:09 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. src/internal/types/testdata/spec/conversions.go

    func _[X Unsigned, T Unsigned](x X) T { return T(x) }
    func _[X Float, T Unsigned](x X) T    { return T(x) }
    
    func _[X Integer, T Float](x X) T  { return T(x) }
    func _[X Unsigned, T Float](x X) T { return T(x) }
    func _[X Float, T Float](x X) T    { return T(x) }
    
    func _[X, T Integer | Unsigned | Float](x X) T { return T(x) }
    func _[X, T Integer | ~string](x X) T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. src/runtime/os_openbsd_syscall2.go

    package runtime
    
    import (
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    //go:noescape
    func sigaction(sig uint32, new, old *sigactiont)
    
    func kqueue() int32
    
    //go:noescape
    func kevent(kq int32, ch *keventt, nch int32, ev *keventt, nev int32, ts *timespec) int32
    
    func raiseproc(sig uint32)
    
    func getthrid() int32
    func thrkill(tid int32, sig int)
    
    // read calls the read system call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/decls2/decls2a.go

    type _ struct { m int }
    type _ struct { m int }
    
    func (_ /* ERROR "cannot use _" */) m() {}
    func m(_ /* ERROR "cannot use _" */) {}
    
    // Methods with receiver base type declared in another file.
    func (T3) m1() {}
    func (*T3) m2() {}
    func (x T3) m3() {}
    func (x *T3) f /* ERROR "field and method" */ () {}
    
    // Methods of non-struct type.
    type T4 func()
    
    func (self T4) m() func() { return self }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/remove_unused_arguments.mlir

    func.func private @f(%arg0: tensor<f32>, %arg1: tensor<f32>) {
      return
    }
    
    // CHECK-LABEL: removes_all_args
    func.func @removes_all_args(%arg0: tensor<f32>, %arg1: tensor<f32>) {
      // CHECK: call{{.*}}() :
      func.call @f(%arg0, %arg1) : (tensor<f32>, tensor<f32>) -> ()
      return
    }
    
    // -----
    
    // CHECK-LABEL: handles_mlprogram
    // CHECK-SAME: () {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 06 23:00:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprog/crash.go

    func DoublePanic() {
    	defer func() {
    		panic(P("YYY"))
    	}()
    	panic(P("XXX"))
    }
    
    // Test that panic while panicking discards error message
    // See issue 52257
    type exampleError struct{}
    
    func (e exampleError) Error() string {
    	panic("important multi-line\nerror message")
    }
    
    func ErrorPanic() {
    	panic(exampleError{})
    }
    
    type examplePanicError struct{}
    
    func (e examplePanicError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/internal/types/testdata/spec/range.go

    type MyString string
    type MyFunc1 func(func(int) bool)
    type MyFunc2 func(int) bool
    type MyFunc3 func(MyFunc2)
    
    type T struct{}
    
    func (*T) PM() {}
    func (T) M()   {}
    
    func f1()                             {}
    func f2(func())                       {}
    func f4(func(int) bool)               {}
    func f5(func(int, string) bool)       {}
    func f7(func(int) MyBool)             {}
    func f8(func(MyInt, MyString) MyBool) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 04:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/runtime/os_wasm.go

    // TODO: Make this a compiler intrinsic
    func getfp() uintptr { return 0 }
    
    func setProcessCPUProfiler(hz int32) {}
    func setThreadCPUProfiler(hz int32)  {}
    func sigdisable(uint32)              {}
    func sigenable(uint32)               {}
    func sigignore(uint32)               {}
    
    // Stubs so tests can link correctly. These should never be called.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/reflect/badlinkname.go

    func badlinkname_rtype_AssignableTo(*rtype, Type) bool
    
    //go:linkname badlinkname_rtype_Bits reflect.(*rtype).Bits
    func badlinkname_rtype_Bits(*rtype) int
    
    //go:linkname badlinkname_rtype_ChanDir reflect.(*rtype).ChanDir
    func badlinkname_rtype_ChanDir(*rtype) ChanDir
    
    //go:linkname badlinkname_rtype_Comparable reflect.(*rtype).Comparable
    func badlinkname_rtype_Comparable(*rtype) bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/get-arithmetic-count.mlir

      func.return %0 : tensor<10x10x10xf32>
    }
    
    func.func @testLogistic(%arg0: tensor<10x10xf32>) -> tensor<10x10xf32> {
      // CHECK: _arithmetic_count = 6400 : i64
      %0 = "tfl.logistic"(%arg0) : (tensor<10x10xf32>) -> tensor<10x10xf32>
      func.return %0 : tensor<10x10xf32>
    }
    
    func.func @testLogSoftmax(%arg0: tensor<10x10xf32>) -> tensor<10x10xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:58:17 UTC 2022
    - 7.7K bytes
    - Viewed (0)
Back to top