- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 411 for Ldflags (0.1 sec)
-
src/cmd/cgo/internal/testsanitizers/testdata/tsan4.go
// license that can be found in the LICENSE file. package main // Check that calls to C.malloc/C.free do not trigger TSAN false // positive reports. // #cgo CFLAGS: -fsanitize=thread // #cgo LDFLAGS: -fsanitize=thread // #include <stdlib.h> import "C" import ( "runtime" "sync" ) func main() { var wg sync.WaitGroup for i := 0; i < 10; i++ { wg.Add(1) go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 634 bytes - Viewed (0) -
src/runtime/msan/msan.go
// license that can be found in the LICENSE file. //go:build msan && ((linux && (amd64 || arm64 || loong64)) || (freebsd && amd64)) package msan /* #cgo CFLAGS: -fsanitize=memory #cgo LDFLAGS: -fsanitize=memory #include <stdint.h> #include <sanitizer/msan_interface.h> void __msan_read_go(void *addr, uintptr_t sz) { __msan_check_mem_is_initialized(addr, sz); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 729 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan3.go
// license that can be found in the LICENSE file. package main // The stubs for the C functions read and write the same slot on the // g0 stack when copying arguments in and out. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread int Func1() { return 0; } void Func2(int x) { (void)x; } */ import "C" func main() { const N = 10000 done := make(chan bool, N)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 662 bytes - Viewed (0) -
src/cmd/cgo/internal/test/sigprocmask.go
// Copyright 2015 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 !windows package cgotest /* #cgo CFLAGS: -pthread #cgo LDFLAGS: -pthread extern int RunSigThread(); extern int CheckBlocked(); */ import "C" import ( "os" "os/signal" "syscall" "testing" ) var blocked bool //export IntoGoAndBack
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 808 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan7.go
package main // Setting an environment variable in a cgo program changes the C // environment. Test that this does not confuse the race detector. /* #cgo CFLAGS: -fsanitize=thread #cgo LDFLAGS: -fsanitize=thread */ import "C" import ( "fmt" "os" "sync" "time" ) func main() { var wg sync.WaitGroup var mu sync.Mutex f := func() { defer wg.Done()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 708 bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/badsym_test.go
// goSource is the source code for the trivial Go file we use. // We will replace TMPDIR with the temporary directory name. const goSource = ` package main // #cgo LDFLAGS: TMPDIR/cbad.o TMPDIR/cbad.so // extern int F(); import "C" func main() { println(C.F()) } ` func TestBadSymbol(t *testing.T) { testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 5.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_flag_contains_space.txt
go build -x -n main.go stderr '"-I[^"]+c flags"' # find quoted c flags ! stderr '"-I[^"]+c flags".*"-I[^"]+c flags"' # don't find too many quoted c flags per line stderr '"-L[^"]+ld flags"' # find quoted ld flags ! stderr '"-L[^"]+c flags".*"-L[^"]+c flags"' # don't find too many quoted ld flags per line -- main.go -- package main // #cgo CFLAGS: -I"c flags"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 12 17:46:03 UTC 2020 - 523 bytes - Viewed (0) -
src/net/cgo_unix_cgo_resn.go
#include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <unistd.h> #include <string.h> #include <arpa/nameser.h> #include <resolv.h> #cgo !aix,!dragonfly,!freebsd LDFLAGS: -lresolv */ import "C" type _C_struct___res_state = C.struct___res_state func _C_res_ninit(state *_C_struct___res_state) error { _, err := C.res_ninit(state) return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 23:50:56 UTC 2024 - 979 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue24161e0/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin package issue24161e0 /* #cgo CFLAGS: -x objective-c #cgo LDFLAGS: -framework CoreFoundation -framework Security #include <TargetConditionals.h> #include <CoreFoundation/CoreFoundation.h> #include <Security/Security.h>
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 919 bytes - Viewed (0) -
src/cmd/go/testdata/script/link_external_undef.txt
# Test case for issue 47993, in which the linker crashes # on a bad input instead of issuing an error and exiting. # This test requires external linking, so use cgo as a proxy [!cgo] skip ! go build -ldflags='-linkmode=external' . ! stderr 'panic' stderr '^.*undefined symbol in relocation.*' -- go.mod -- module issue47993 go 1.16 -- main.go -- package main type M struct { b bool }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 21 18:44:09 UTC 2023 - 806 bytes - Viewed (0)