- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 311 for lchflags (0.1 sec)
-
src/cmd/cgo/internal/test/issue24161arg/use.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. //go:build darwin package issue24161arg /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" import "testing" func Test(t *testing.T) { a := test24161array() C.CFArrayCreateCopy(0, a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 398 bytes - Viewed (0) -
api/except.txt
pkg os, type PathError struct, Path string pkg syscall (darwin-amd64), const ImplementsGetwd = false pkg syscall (darwin-amd64), func Fchflags(string, int) error pkg syscall (darwin-amd64-cgo), const ImplementsGetwd = false pkg syscall (darwin-amd64-cgo), func Fchflags(string, int) error pkg syscall (freebsd-386), const AF_MAX = 38 pkg syscall (freebsd-386), const DLT_MATCHING_MAX = 242 pkg syscall (freebsd-386), const ELAST = 94
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:13:30 UTC 2023 - 34.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_ppc64le_cgo_inline_plt.txt
# # Note, older gcc/clang may accept this option, but # ignore it if binutils does not support the relocs. [!compiler:gc] skip [!cgo] skip [!GOARCH:ppc64le] skip env CGO_CFLAGS='-fno-plt -O2 -g' go build -ldflags='-linkmode=internal' exec ./noplttest stdout helloworld -- go.mod -- module noplttest -- noplttest.go -- package main /* #include <stdio.h> void helloworld(void) { printf("helloworld\n");
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 719 bytes - Viewed (0) -
src/cmd/link/internal/ld/ld_test.go
srcfile := filepath.Join(dir, "test.go") arfile := filepath.Join(dir, "test.a") if err := os.WriteFile(srcfile, []byte(carchiveSrcText), 0666); err != nil { t.Fatal(err) } ldf := fmt.Sprintf("-ldflags=-v -tmpdir=%s", dir) argv := []string{"build", "-buildmode=c-archive", "-o", arfile, ldf, srcfile} out, err := testenv.Command(t, testenv.GoToolPath(t), argv...).CombinedOutput() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 05:45:53 UTC 2023 - 10.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8756.go
// Copyright 2016 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 cgotest /* #cgo !darwin LDFLAGS: -lm #include <math.h> */ import "C" import ( "testing" "cmd/cgo/internal/test/issue8756" ) func test8756(t *testing.T) { issue8756.Pow() C.pow(1, 2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:34:11 UTC 2023 - 359 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan.go
package main // This program produced false race reports when run under the C/C++ // ThreadSanitizer, as it did not understand the synchronization in // the Go code. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread int val; int getVal() { return val; } void setVal(int i) { val = i; } */ import "C" import ( "runtime" ) func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 700 bytes - Viewed (0) -
src/cmd/link/internal/ld/nooptcgolink_test.go
if testing.Short() { t.Skip("skipping test in short mode.") } t.Parallel() testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) dir := t.TempDir() cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-gcflags=-N -l", "-o", filepath.Join(dir, "a.out")) cmd.Dir = filepath.Join(testenv.GOROOT(t), "src", "runtime", "testdata", "testprogcgo") out, err := cmd.CombinedOutput() if err != nil { t.Logf("go build output: %s", out)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:14 UTC 2022 - 733 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161res/restype.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. //go:build darwin package issue24161res /* #cgo LDFLAGS: -framework CoreFoundation #include <CoreFoundation/CoreFoundation.h> */ import "C" import ( "reflect" "testing" ) func Test(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 486 bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/testdata/err1.go
// Copyright 2013 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 /* #cgo LDFLAGS: -L/nonexist void test() { xxx; // ERROR HERE } // Issue 8442. Cgo output unhelpful error messages for // invalid C preambles. void issue8442foo(UNDEF*); // ERROR HERE */ import "C" func main() { C.test()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 404 bytes - Viewed (0) -
test/fixedbugs/issue35027.go
// run -gcflags=-d=checkptr // Copyright 2019 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 ( "reflect" "unsafe" ) var s []int func main() { s = []int{42} h := (*reflect.SliceHeader)(unsafe.Pointer(&s)) x := *(*int)(unsafe.Pointer(h.Data)) if x != 42 { panic(x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 21 20:51:06 UTC 2019 - 395 bytes - Viewed (0)