Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for gofunc (0.14 sec)

  1. src/runtime/testdata/testwintls/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.
    
    package main
    
    import "C"
    
    //export GoFunc
    func GoFunc() int { return 42 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 15:37:00 UTC 2023
    - 250 bytes
    - Viewed (0)
  2. src/cmd/link/testdata/testBuildFortvOS/main.m

    extern void GoFunc();
    
    int main(int argc, char **argv) {
    	GoFunc();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 23 15:31:01 UTC 2020
    - 70 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/go2c2go/go/shlib.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 "C"
    
    //export GoFunc
    func GoFunc() int { return 1 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 249 bytes
    - Viewed (0)
  4. src/cmd/link/testdata/testBuildFortvOS/lib.go

    package main
    
    import "C"
    
    //export GoFunc
    func GoFunc() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 23 15:31:01 UTC 2020
    - 75 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/build_gcflags.txt

    go build -x -n -buildmode=c-archive -gcflags=all=-shared=false ./override.go
    stderr '^.*/compile (.* )?-shared (.* )?-shared=false'
    
    -- override.go --
    package main
    
    import "C"
    
    //export GoFunc
    func GoFunc() {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 541 bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/cgo/internal/testcshared/testdata/go2c2go/m2/main.go

    // 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)
  8. src/time/sleep.go

    // compare linknamed symbol definitions happier.
    //
    //go:linkname newTimer
    func newTimer(when, period int64, f func(any, uintptr, int64), arg any, cp unsafe.Pointer) *Timer
    
    //go:linkname stopTimer
    func stopTimer(*Timer) bool
    
    //go:linkname resetTimer
    func resetTimer(t *Timer, when, period int64) bool
    
    // Note: The runtime knows the layout of struct Timer, since newTimer allocates it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/runtime/signal_windows_test.go

    		t.Fatalf("Program exited with error: %v\n%s", err, &stderr)
    	}
    }
    
    func TestIssue59213(t *testing.T) {
    	if runtime.GOOS != "windows" {
    		t.Skip("skipping windows only test")
    	}
    	if *flagQuick {
    		t.Skip("-quick")
    	}
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    
    	goEnv := func(arg string) string {
    		cmd := testenv.Command(t, testenv.GoToolPath(t), "env", arg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. src/cmd/nm/nm_test.go

    }
    `
    
    const testlib = `
    package mylib
    
    {{if .}}
    // int cgodata = 5;
    // void cgofunc(void) {}
    import "C"
    
    var TestCgodata = C.cgodata
    
    func TestCgofunc() {
    	C.cgofunc()
    }
    {{end}}
    
    var Testdata uint32
    
    func Testfunc() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top