- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for reserve (0.89 sec)
-
src/cmd/link/internal/ld/testdata/stackcheck/main.go
// Copyright 2022 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. package main func main() { asmMain() } func asmMain() func startSelf() func startChain() func chain0() func chain1() func chain2() func chainEnd() func startRec()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 19 15:59:26 UTC 2022 - 345 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m2/main.go
// 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. package main // #include "libtestgo2c2go.h" import "C" import ( "fmt" "os" ) func main() { got := C.GoFunc() const want = 1 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 - 374 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue19534/main.go
// Copyright 2017 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. package main import "plugin" func main() { p, err := plugin.Open("plugin.so") if err != nil { panic(err) } sym, err := p.Lookup("Foo") if err != nil { panic(err) } f := sym.(func() int) if f() != 42 { panic("expected f() == 42") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 411 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/issue24351/main.go
// 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. package main import "plugin" func main() { p, err := plugin.Open("issue24351.so") if err != nil { panic(err) } f, err := p.Lookup("B") if err != nil { panic(err) } c := make(chan bool) f.(func(chan bool))(c) <-c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 389 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/method/main.go
// Copyright 2020 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. // Issue 42579: methods of symbols exported from plugin must be live. package main import ( "plugin" "reflect" ) func main() { p, err := plugin.Open("plugin.so") if err != nil { panic(err) } x, err := p.Lookup("X") if err != nil { panic(err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 478 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/forkexec/main.go
// Copyright 2021 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. package main import ( "os" "os/exec" _ "plugin" "sync" ) func main() { if os.Args[1] != "1" { return } var wg sync.WaitGroup for i := 0; i < 8; i++ { wg.Add(1) go func() { defer wg.Done()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 502 bytes - Viewed (0) -
src/cmd/link/testdata/dynimportvar/main.go
// Copyright 2023 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. // Test that we can access dynamically imported variables. // We ues mach_task_self_ from darwin's system library. // Check that loading the variable from C and Go gets the // same result. //go:build darwin package main /* #include <mach/mach_init.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 19:39:32 UTC 2023 - 678 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/iface/main.go
// Copyright 2017 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. package main import ( "log" "plugin" "testplugin/iface_i" ) func main() { a, err := plugin.Open("iface_a.so") if err != nil { log.Fatalf(`plugin.Open("iface_a.so"): %v`, err) } b, err := plugin.Open("iface_b.so") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/global/main.go
// Copyright 2017 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. package main import ( "testshared/globallib" ) //go:noinline func testLoop() { for i, s := range globallib.Data { if s != int64(i) { panic("testLoop: mismatch") } } } //go:noinline func ptrData() *[1<<20 + 10]int64 { return &globallib.Data }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/issue32233/main/main.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:12:55 UTC 2019 - 256 bytes - Viewed (0)