- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for test6907 (0.23 sec)
-
src/cmd/cgo/internal/test/test.go
t.Errorf("C.myint as const = %v, want 1.5", c) } } if s := C.mystring_def; s != "hello" { t.Errorf("C.mystring_def = %q, want %q", s, "hello") } } // issue 6907 func test6907(t *testing.T) { want := "yarn" if got := C.GoString(C.Issue6907CopyString(want)); got != want { t.Errorf("C.GoString(C.Issue6907CopyString(%q)) == %q, want %q", want, got, want) } } // issue 7560
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/testx.go
} } // issue 6907 const CString = "C string" //export CheckIssue6907Go func CheckIssue6907Go(s string) C.int { if s == CString { return 1 } return 0 } func test6907Go(t *testing.T) { if got := C.CheckIssue6907C(CString); got != 1 { t.Errorf("C.CheckIssue6907C() == %d, want %d", got, 1) } } // issue 7665 var bad7665 unsafe.Pointer = C.f7665
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 10.6K bytes - Viewed (0)