- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for myprint1 (0.22 sec)
-
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) -
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) -
test/typeparam/gencrawler.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 10 19:51:05 UTC 2022 - 412 bytes - Viewed (0) -
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) -
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) -
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) -
src/encoding/json/encode_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 29.4K bytes - Viewed (0) -
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) -
src/cmd/cgo/doc.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
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)