// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
// Compute Fibonacci numbers with two goroutines
// that pass integers back and forth. No actual
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gc
+//go:build gc
#include "_cgo_export.h"
#include <stdint.h>
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gccgo
+//go:build gccgo
#include "_cgo_export.h"
#include <stdint.h>
// license that can be found in the LICENSE file.
//go:build linux && freebsd && openbsd
-// +build linux,freebsd,openbsd
package cgotest
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package cgotest
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
+//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
#include <pthread.h>
#include "_cgo_export.h"
// license that can be found in the LICENSE file.
//go:build linux && cgo
-// +build linux,cgo
package cgotest
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
// Issue 18146: pthread_create failure during syscall.Exec.
// license that can be found in the LICENSE file.
//go:build darwin && cgo && !internal
-// +build darwin,cgo,!internal
package cgotest
// license that can be found in the LICENSE file.
//go:build !darwin || !cgo || internal
-// +build !darwin !cgo internal
package cgotest
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package issue24161arg
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package issue24161arg
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package issue24161e0
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package issue24161e1
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package issue24161e2
// license that can be found in the LICENSE file.
//go:build darwin
-// +build darwin
package issue24161res
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
// Issue 29563: internal linker fails on duplicate weak symbols.
// No runtime test; just make sure it compiles.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build !windows,!static
-// +build !darwin !internal_pie,!arm64
+//go:build !windows && !static && (!darwin || (!internal_pie && !arm64))
#include <stdint.h>
#include <dlfcn.h>
// license that can be found in the LICENSE file.
//go:build !windows && !static && (!darwin || (!internal_pie && !arm64))
-// +build !windows
-// +build !static
-// +build !darwin !internal_pie,!arm64
// Excluded in darwin internal linking PIE mode, as dynamic export is not
// supported.
// license that can be found in the LICENSE file.
//go:build windows || static || (darwin && internal_pie) || (darwin && arm64)
-// +build windows static darwin,internal_pie darwin,arm64
package cgotest
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package cgotest
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build !android
+//go:build !android
#include <pthread.h>
#include <stdio.h>
// license that can be found in the LICENSE file.
//go:build !android
-// +build !android
// Test that pthread_cancel works as expected
// (NPTL uses SIGRTMIN to implement thread cancellation)
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package cgotest
// license that can be found in the LICENSE file.
//go:build !android
-// +build !android
package cgotest
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gc
+//go:build gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build amd64 amd64p32
-// +build gc
+//go:build (amd64 || amd64p32) && gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gc
+//go:build gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gc
+//go:build gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build mips64 mips64le
-// +build gc
+//go:build (mips64 || mips64le) && gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build mips mipsle
-// +build gc
+//go:build (mips || mipsle) && gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build ppc64 ppc64le
-// +build gc
+//go:build (ppc64 || ppc64le) && gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build riscv64
-// +build gc
+//go:build riscv64 && gc
#include "textflag.h"
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gc
+//go:build gc
#include "textflag.h"
// license that can be found in the LICENSE file.
//go:build gccgo
-// +build gccgo
package issue9400
// license that can be found in the LICENSE file.
//go:build gc
-// +build gc
package issue9400
// license that can be found in the LICENSE file.
//go:build !windows && !android
-// +build !windows,!android
// Test that the Go runtime still works if C code changes the signal stack.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build !windows
+//go:build !windows
#include <errno.h>
#include <signal.h>
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package cgotest
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package cgotest
// license that can be found in the LICENSE file.
//go:build darwin || dragonfly || freebsd || (linux && !arm64 && !riscv64) || netbsd || openbsd
-// +build darwin dragonfly freebsd linux,!arm64,!riscv64 netbsd openbsd
package main
// license that can be found in the LICENSE file.
//go:build (linux && arm64) || (linux && riscv64)
-// +build linux,arm64 linux,riscv64
package main
// license that can be found in the LICENSE file.
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
-// +build darwin dragonfly freebsd linux netbsd openbsd solaris
package main
// Copyright 2014 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 ignore
-// +build ignore
package main
// Copyright 2020 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 ignore
-// +build ignore
package main
// Copyright 2018 The Go Authors. All rights reserve d.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//
+
//go:build ignore
-// +build ignore
package main
// Copyright 2020 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 ignore
-// +build ignore
package main
// Copyright 2020 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 ignore
-// +build ignore
package main
// Copyright 2020 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 ignore
-// +build ignore
package main
// Copyright 2020 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 ignore
-// +build ignore
package main
// 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.
-//
+
//go:build ignore
-// +build ignore
package main
// Copyright 2014 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 ignore
-// +build ignore
package main
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build gc
+//go:build gc
#include "textflag.h"
// license that can be found in the LICENSE file.
//go:build gccgo
-// +build gccgo
package depBase
// license that can be found in the LICENSE file.
//go:build gc
-// +build gc
package depBase
// license that can be found in the LICENSE file.
//go:build !cgo
-// +build !cgo
package so_test
// license that can be found in the LICENSE file.
//go:build cgo
-// +build cgo
package so_test
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build ignore
+//go:build ignore
#ifdef WIN32
// A Windows DLL is unable to call an arbitrary function in
// license that can be found in the LICENSE file.
//go:build aix || dragonfly || freebsd || linux || netbsd || solaris
-// +build aix dragonfly freebsd linux netbsd solaris
package cgosotest
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
// license that can be found in the LICENSE file.
//go:build !cgo
-// +build !cgo
package so_test
// license that can be found in the LICENSE file.
//go:build cgo
-// +build cgo
package so_test
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build ignore
+//go:build ignore
const char *exported_var = "Hello world";
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build ignore
+//go:build ignore
#ifdef WIN32
#if defined(EXPORT_DLL)
// license that can be found in the LICENSE file.
//go:build ignore
-// +build ignore
package main
// license that can be found in the LICENSE file.
//go:build !windows
-// +build !windows
package cgotlstest