- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for cfunc (0.1 sec)
-
src/cmd/go/testdata/script/cover_coverpkg_partial.txt
func TestB(t *testing.T) { if BFunc() == 1010101 { t.Fatalf("bad!") } } -- c/c.go -- package c var G int func CFunc(x, y int) int { G += x G -= y return x + y } -- c/c_test.go -- package c import "testing" func TestC(t *testing.T) { if CFunc(10, 10) == 1010101 { t.Fatalf("bad!") } } -- d/d.go -- package d const FortyTwo = 42
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 20:12:49 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // extern int CFunc(void); import "C" import ( "fmt" "os" ) func main() { got := C.CFunc() const want = (1 << 8) | 2 if got != want { fmt.Printf("got %#x, want %#x\n", got, want) os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 380 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/c.c
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "libtestgo2c2go.h" int CFunc(void) { return (GoFunc() << 8) + 2;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 238 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/plugin2/plugin2.go
// license that can be found in the LICENSE file. package main //#include <errno.h> //#include <string.h> import "C" // #include // void cfunc() {} // uses cgo_topofstack import ( "reflect" "strings" "testplugin/common" ) func init() { _ = strings.NewReplacer() // trigger stack unwind, Issue #18190. C.strerror(C.EIO) // uses cgo_topofstack common.X = 2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 796 bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_coverpkg_with_init.txt
import ( "M/a" "M/b" ) func MFunc() string { return "42" } func M2Func() int { return a.AFunc() + b.BFunc() } func init() { println("package 'main' init") } func main() { println(a.AFunc() + b.BFunc()) } -- main/main_test.go -- package main import "testing" func TestMain(t *testing.T) { if MFunc() != "42" { t.Fatalf("bad!") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 30 12:33:44 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt
} func init() { println("package 'main' init") } func main() { println(a.AFunc() + b.BFunc()) } -- main/main_test.go -- package main import "testing" func TestMain(t *testing.T) { if MFunc() != "42" { t.Fatalf("bad!") } if M2Func() != 0 { t.Fatalf("also bad!") } } -- n/n.go -- package n type N int -- onlytest/mumble_test.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 17:02:36 UTC 2023 - 2.7K bytes - Viewed (0) -
test/ken/mfunc.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 386 bytes - Viewed (0) -
src/cmd/cover/func.go
// fmt/format.go:57: clearflags 100.0% // ... // fmt/scan.go:1046: doScan 100.0% // fmt/scan.go:1075: advance 96.2% // fmt/scan.go:1119: doScanf 96.8% // total: (statements) 91.9% func funcOutput(profile, outputFile string) error { profiles, err := cover.ParseProfiles(profile) if err != nil { return err } dirs, err := findPkgs(profiles) if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/func.cc
// Returns true iff the function's symbol is public. bool IsPublicFuncOp(func::FuncOp func_op) { return SymbolTable::getSymbolVisibility(&*func_op) == SymbolTable::Visibility::Public; } } // namespace func::FuncOp FindMainFuncOp(ModuleOp module_op) { if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>( kImportModelDefaultGraphFuncName);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 19 06:55:11 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/convert_launch_func_to_tf_call.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 2.3K bytes - Viewed (0)