- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 713 for CFlags (0.43 sec)
-
src/cmd/cgo/internal/testsanitizers/testdata/tsan4.go
// Use of this source code is governed by a BSD-style // 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++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 634 bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/tsan10.go
// run for an arbitrarily long time without triggering the libc interceptors. // See https://golang.org/issue/18717. import ( "os" "os/signal" "syscall" ) /* #cgo CFLAGS: -g -fsanitize=thread #cgo LDFLAGS: -g -fsanitize=thread */ import "C" func main() { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGUSR1) defer signal.Stop(c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 798 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/issue43639/a.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 issue43639 // #cgo CFLAGS: -W -Wall -Werror
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 224 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
// license that can be found in the LICENSE file. 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() {
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/go/testdata/script/test_ppc64_linker_funcs.txt
stdout success go build -buildmode=pie -o abitest.pie -ldflags='-linkmode=internal' exec ./abitest.pie stdout success -- go.mod -- module abitest -- abitest.go -- package main /* #cgo CFLAGS: -Os int foo_fpr() { asm volatile("":::"fr31","fr30","fr29","fr28"); } int foo_gpr0() { asm volatile("":::"r30","r29","r28"); } int foo_gpr1() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:54:08 UTC 2024 - 1K bytes - Viewed (0) -
build/pause/Makefile
ALL_OSVERSIONS.windows := 1809 ltsc2022 ALL_OS_ARCH.windows = $(foreach arch, $(ALL_ARCH.windows), $(foreach osversion, ${ALL_OSVERSIONS.windows}, windows-$(arch)-${osversion})) ALL_OS_ARCH = $(foreach os, $(ALL_OS), ${ALL_OS_ARCH.${os}}) CFLAGS = -Os -Wall -Werror -static -DVERSION=v$(TAG)-$(REV) KUBE_CROSS_IMAGE ?= registry.k8s.io/build-image/kube-cross KUBE_CROSS_VERSION ?= $(shell cat ../build-image/cross/VERSION)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 23 19:31:40 UTC 2024 - 6.6K bytes - Viewed (0) -
src/runtime/msan/msan.go
// Use of this source code is governed by a BSD-style // 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/test/issue20266.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 20266: use -I with a relative path. package cgotest /* #cgo CFLAGS: -I issue20266 -Iissue20266 -Ddef20266 #include "issue20266.h" */ import "C" import "testing" func test20266(t *testing.T) { if got, want := C.issue20266, 20266; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 463 bytes - Viewed (0)