Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for myprint1 (0.22 sec)

  1. test/escape2.go

    	myprint1(nil, z...)
    }
    
    func foo77b(z []interface{}) { // ERROR "leaking param: z$"
    	var ppi **interface{}
    	*ppi = myprint1(nil, z...)
    }
    
    func foo77c(z []interface{}) { // ERROR "leaking param: z$"
    	sink = myprint1(nil, z...)
    }
    
    func dotdotdot() {
    	i := 0
    	myprint(nil, &i) // ERROR "... argument does not escape$"
    
    	j := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. test/escape2n.go

    	myprint1(nil, z...)
    }
    
    func foo77b(z []interface{}) { // ERROR "leaking param: z$"
    	var ppi **interface{}
    	*ppi = myprint1(nil, z...)
    }
    
    func foo77c(z []interface{}) { // ERROR "leaking param: z$"
    	sink = myprint1(nil, z...)
    }
    
    func dotdotdot() {
    	i := 0
    	myprint(nil, &i) // ERROR "... argument does not escape$"
    
    	j := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  3. test/typeparam/gencrawler.dir/a.go

    package a
    
    var V val[int]
    
    type val[T any] struct {
    	valx T
    }
    
    func (v *val[T]) Print() {
    	v.print1()
    }
    
    func (v *val[T]) print1() {
    	println(v.valx)
    }
    
    func (v *val[T]) fnprint1() {
    	println(v.valx)
    }
    
    func FnPrint[T any](v *val[T]) {
    	v.fnprint1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 10 19:51:05 UTC 2022
    - 412 bytes
    - Viewed (0)
  4. src/runtime/cgo/handle.go

    //
    //	extern void MyGoPrint(uintptr_t handle);
    //	void myprint(uintptr_t handle);
    //	*/
    //	import "C"
    //	import "runtime/cgo"
    //
    //	//export MyGoPrint
    //	func MyGoPrint(handle C.uintptr_t) {
    //		h := cgo.Handle(handle)
    //		val := h.Value().(string)
    //		println(val)
    //		h.Delete()
    //	}
    //
    //	func main() {
    //		val := "hello Go"
    //		C.myprint(C.uintptr_t(cgo.NewHandle(val)))
    //		// Output: hello Go
    //	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/internal/types/testdata/examples/constraints.go

    // operation.
    
    type myInt1 int
    type myInt2 int
    
    func _[T interface{ myInt1|myInt2; ~int }]() T { return T(0) }
    func _[T interface{ ~int; myInt1|myInt2 }]() T { return T(0) }
    
    // Here the intersections are empty - there's no type that's in the type set of T.
    func _[T interface{ myInt1|myInt2; int }]() T { return T(0 /* ERROR "cannot convert" */ ) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    //
    // To enable printf checking on a function that is not found by this
    // analyzer's heuristics (for example, because control is obscured by
    // dynamic method calls), insert a bogus call:
    //
    //	func MyPrintf(format string, args ...any) {
    //		if false {
    //			_ = fmt.Sprintf(format, args...) // enable printf checking
    //		}
    //		...
    //	}
    //
    // # Specifying printf wrappers by flag
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/encoding/json/encode_test.go

    		makeInput: func() any {
    			type (
    				MyInt1 int
    				MyInt2 int
    				myInt  int
    				s2     struct {
    					MyInt2
    					myInt
    				}
    				s1 struct {
    					MyInt1
    					myInt
    					s2
    				}
    				S struct {
    					s1
    					myInt
    				}
    			)
    			return S{s1{1, 2, s2{3, 4}}, 6}
    		},
    		want: `{"MyInt1":1,"MyInt2":3}`,
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/breakup-islands.mlir

    // CHECK:    %[[SUB2:.*]], %[[SUB2_control:.*]] = tf_executor.island(%[[ADD2_control]], %[[MUL_control]]) wraps "tf.Sub"(%[[ADD1]], %[[SUB1]])
    // CHECK:    %[[PRINT1:.*]], %[[PRINT1_control:.*]] = tf_executor.island wraps "tf.Print"(%[[SUB2]]) <{message = "sub result"}>
    // CHECK:    %[[ISLAND1:.*]] = tf_executor.island(%[[ADD2_control]], %[[MUL_control]]) wraps "tf.NoOp"()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 28.5K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    	package main
    
    	// #include <stdio.h>
    	// #include <stdlib.h>
    	//
    	// static void myprint(char* s) {
    	//   printf("%s\n", s);
    	// }
    	import "C"
    	import "unsafe"
    
    	func main() {
    		cs := C.CString("Hello from stdio")
    		C.myprint(cs)
    		C.free(unsafe.Pointer(cs))
    	}
    
    A few special functions convert between Go and C types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  10. src/runtime/traceback.go

    		}
    		if off < startOffset {
    			return true
    		}
    		bits := *(*uint8)(add(liveInfo, uintptr(liveIdx)+uintptr(slotIdx/8)))
    		return bits&(1<<(slotIdx%8)) != 0
    	}
    
    	print1 := func(off, sz, slotIdx uint8) {
    		x := readUnaligned64(add(argp, uintptr(off)))
    		// mask out irrelevant bits
    		if sz < 8 {
    			shift := 64 - sz*8
    			if goarch.BigEndian {
    				x = x >> shift
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top