Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 785 for CGO (0.02 sec)

  1. src/cmd/cgo/internal/test/issue24161_darwin_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package cgotest
    
    import (
    	"testing"
    
    	"cmd/cgo/internal/test/issue24161arg"
    	"cmd/cgo/internal/test/issue24161e0"
    	"cmd/cgo/internal/test/issue24161e1"
    	"cmd/cgo/internal/test/issue24161e2"
    	"cmd/cgo/internal/test/issue24161res"
    )
    
    func Test24161Arg(t *testing.T) {
    	issue24161arg.Test(t)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 716 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/list_find_nodeps.txt

    go list -find -f {{.Deps}} ./cmd
    stdout '\[\]'
    
    # Cgo translation may add imports of "unsafe", "runtime/cgo" and "syscall"
    go list -find -f {{.Deps}} ./cgo
    stdout '\[\]'
    
    # SWIG adds imports of some standard packages
    go list -find -f {{.Deps}} ./swig
    stdout '\[\]'
    
    -- go.mod --
    module listfind
    
    -- cmd/main.go --
    package main
    
    func main() {}
    
    -- cgo/pkg.go --
    package cgopkg
    
    /*
    #include <limits.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 12 14:43:27 UTC 2021
    - 737 bytes
    - Viewed (0)
  3. test/typeparam/issue54765.go

    // arguments. (pointer-to-nih types are okay though.)
    
    //go:build cgo
    
    package p
    
    import (
    	"runtime/cgo"
    	"sync/atomic"
    )
    
    var _ atomic.Pointer[cgo.Incomplete]  // ERROR "cannot use incomplete \(or unallocatable\) type as a type argument: runtime/cgo\.Incomplete"
    var _ atomic.Pointer[*cgo.Incomplete] // ok
    
    func implicit(ptr *cgo.Incomplete) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 729 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/list_load_err.txt

    go list -e -deps ./scan
    stdout m/want
    
    go list -e -deps ./multi
    stdout m/want
    
    go list -e -deps ./constraint
    stdout m/want
    
    [cgo] go list -e -test -deps ./cgotest
    [cgo] stdout m/want
    
    [cgo] go list -e -deps ./cgoflag
    [cgo] stdout m/want
    
    
    # go list -e should include files with errors in GoFiles, TestGoFiles, and
    # other lists, assuming they match constraints.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/mod/rsc.io_!c!g!o_v1.0.0.txt

    rsc.io/CGO v1.0.0
    
    -- .mod --
    module rsc.io/CGO
    -- .info --
    {"Version":"v1.0.0","Name":"","Short":"","Time":"2018-08-01T18:23:45Z"}
    -- go.mod --
    module rsc.io/CGO
    -- cgo.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 CGO
    
    // #cgo CFLAGS: -I${SRCDIR}
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 01 19:54:32 UTC 2018
    - 399 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/gccgo_link_ldflags.txt

    # Test that #cgo LDFLAGS are properly quoted.
    # The #cgo LDFLAGS below should pass a string with spaces to -L,
    # as though searching a directory with a space in its name.
    # It should not pass --nosuchoption to the external linker.
    
    [!cgo] skip
    
    go build
    
    [!exec:gccgo] skip
    
    # TODO: remove once gccgo on builder is updated
    [GOOS:aix] [GOARCH:ppc64] skip
    
    go build -compiler gccgo
    
    -- go.mod --
    module m
    -- cgo.go --
    package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 06:52:47 UTC 2023
    - 499 bytes
    - Viewed (0)
  7. src/runtime/cgo/handle.go

    //	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
    //	}
    //
    // and on the C side:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cgo_stale_precompiled.txt

    go build -x runtime/cgo
    [!short] stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    
    # https://go.dev/issue/47215: a missing $(go env CC) caused the precompiled net
    # to be stale. But as of https://go.dev/cl/452457 the precompiled libraries are
    # no longer installed anyway! Since we're requiring a C compiler in order to
    # build and use cgo libraries in the standard library, we should make sure it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/list_compiled_imports.txt

    env GO111MODULE=off
    
    [!cgo] skip
    
    # go list should report import "C"
    cd x
    go list -f '{{.Imports}}'
    ! stdout runtime/cgo
    ! stdout unsafe
    ! stdout syscall
    stdout C
    stdout unicode
    stdout unicode/utf16
    
    # go list -compiled should report imports in compiled files as well,
    # adding "runtime/cgo", "unsafe", and "syscall" but not dropping "C".
    go list -compiled -f '{{.Imports}}'
    stdout runtime/cgo
    stdout unsafe
    stdout syscall
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 19:57:03 UTC 2019
    - 681 bytes
    - Viewed (0)
  10. .gitignore

    *.pyc
    ._*
    .nfs.*
    [56789a].out
    *~
    *.orig
    *.rej
    *.exe
    .*.swp
    core
    *.cgo*.go
    *.cgo*.c
    _cgo_*
    _obj
    _test
    _testmain.go
    
    /VERSION.cache
    /bin/
    /build.out
    /doc/articles/wiki/*.bin
    /goinstall.log
    /last-change
    /misc/cgo/life/run.out
    /misc/cgo/stdio/run.out
    /misc/cgo/testso/main
    /pkg/
    /src/*.*/
    /src/cmd/cgo/zdefaultcc.go
    /src/cmd/dist/dist
    /src/cmd/go/internal/cfg/zdefaultcc.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 958 bytes
    - Viewed (0)
Back to top