Most of the test cases in the test directory use the new go:build syntax
already. Convert the rest. In general, try to place the build constraint
line below the test directive comment in more places.
For #41184.
For #60268.
Change-Id: I11c41a0642a8a26dc2eda1406da908645bbc005b
Cq-Include-Trybots: luci.golang.try:gotip-linux-386-longtest,gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/536236
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
127 files changed:
}
text = strings.TrimSpace(text[2:])
}
text = strings.TrimSpace(text[2:])
- if strings.HasPrefix(text, "+build ") {
+ if strings.HasPrefix(text, "go:build ") {
panic("skip")
}
if first == "" {
panic("skip")
}
if first == "" {
lit = lit[:len(lit)-2]
}
contents := strings.TrimSpace(lit[2:])
lit = lit[:len(lit)-2]
}
contents := strings.TrimSpace(lit[2:])
- if strings.HasPrefix(contents, "+build ") {
+ if strings.HasPrefix(contents, "go:build ") {
return "skip"
}
if first == "" {
return "skip"
}
if first == "" {
// compile
//go:build !wasm
// compile
//go:build !wasm
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
+//go:build darwin || linux
+
// 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.
// 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.
-// +build amd64,!gcflags_noopt
// errorcheck -0 -d=ssa/check_bce/debug=3
// errorcheck -0 -d=ssa/check_bce/debug=3
+//go:build amd64 && !gcflags_noopt
+
// 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.
// 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.
// errorcheckandrundir -0 -m -d=inlfuncswithclosures=1
//go:build !goexperiment.newinliner
// errorcheckandrundir -0 -m -d=inlfuncswithclosures=1
//go:build !goexperiment.newinliner
-// +build !goexperiment.newinliner
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// asmcheck -gcflags=-clobberdead
// asmcheck -gcflags=-clobberdead
+//go:build amd64 || arm64
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// asmcheck -gcflags=-clobberdeadreg
// asmcheck -gcflags=-clobberdeadreg
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// asmcheck -gcflags=-spectre=ret
// asmcheck -gcflags=-spectre=ret
package codegen
func CallFunc(f func()) {
package codegen
func CallFunc(f func()) {
// asmcheck -gcflags=-spectre=index
// asmcheck -gcflags=-spectre=index
// 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.
// 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.
// asmcheck
//go:build !goexperiment.cgocheck2
// asmcheck
//go:build !goexperiment.cgocheck2
-// +build !goexperiment.cgocheck2
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build !nacl,!js,!plan9
// errorcheckandrundir -1
// errorcheckandrundir -1
+//go:build !nacl && !js && !plan9
+
// Copyright 2009 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.
// Copyright 2009 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.
-// +build !nacl,!js,!wasip1,gc
+//go:build !nacl && !js && !wasip1 && gc
+
// Copyright 2011 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.
// Copyright 2011 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.
-// +build 386 amd64p32 arm
+//go:build 386 || amd64p32 || arm
+
// Copyright 2011 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.
// Copyright 2011 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.
// Copyright 2011 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.
// Copyright 2011 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.
// run -race -gcflags=all=-d=checkptr=0
// run -race -gcflags=all=-d=checkptr=0
-// +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64
-// +build cgo
+
+//go:build ((linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)) && cgo
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-//go:build linux && !ppc64 && gc && cgo
-// +build linux,!ppc64,gc,cgo
-
+//go:build linux && !ppc64 && gc && cgo
+
// 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.
// 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.
-// +build !nacl,!js,disabled_see_issue_18589
// buildrun -t 10 -gcflags=-d=ssa/insert_resched_checks/on,ssa/check/on
// buildrun -t 10 -gcflags=-d=ssa/insert_resched_checks/on,ssa/check/on
+//go:build !nacl && !js && disabled_see_issue_18589
+
// 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.
// 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.
// Does not work with gccgo, which uses a smaller (but still permitted)
// exponent size.
// Does not work with gccgo, which uses a smaller (but still permitted)
// exponent size.
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// 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 ppc64 || ppc64le
// license that can be found in the LICENSE file.
//go:build ppc64 || ppc64le
// license that can be found in the LICENSE file.
//go:build !ppc64 && !ppc64le
// license that can be found in the LICENSE file.
//go:build !ppc64 && !ppc64le
-// +build !ppc64,!ppc64le
// able to unwind past that point.
//go:build !windows && !wasm && !gccgo
// able to unwind past that point.
//go:build !windows && !wasm && !gccgo
-// +build !windows,!wasm,!gccgo
-// +build !nacl,!js,!wasip1,gc
+//go:build !nacl && !js && !wasip1 && gc
+
// 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.
// 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.
// 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.
// 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.
-// +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64
+
+//go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// 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.
// 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.
-// +build !nacl,!js,!wasip1,!android,gc
+//go:build !nacl && !js && !wasip1 && !android && gc
+
// 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.
// 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.
-// +build amd64
-// +build linux darwin
+
+//go:build amd64 && (linux || darwin)
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64
+
+//go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// 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.
// 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.
+//go:build !amd64 && !386
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheck -0 -live
//go:build !goexperiment.cgocheck2
// errorcheck -0 -live
//go:build !goexperiment.cgocheck2
-// +build !goexperiment.cgocheck2
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64
+
+//go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build !nacl,!js,!wasip1,!android,!gccgo
+//go:build !nacl && !js && !wasip1 && !android && !gccgo
+
// 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.
// 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.
-// +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64
+
+//go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
+
+//go:build !js && !wasip1
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheckdir -0 -m
//go:build !goexperiment.newinliner
// errorcheckdir -0 -m
//go:build !goexperiment.newinliner
-// +build !goexperiment.newinliner
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 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.
// Copyright 2017 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.
// errorcheck -0 -live -l
//go:build !goexperiment.cgocheck2
// errorcheck -0 -live -l
//go:build !goexperiment.cgocheck2
-// +build !goexperiment.cgocheck2
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build cgo,linux,amd64
+//go:build cgo && linux && amd64
+
// 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.
// 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.
-// +build !js,!wasip1,gc
+//go:build !js && !wasip1 && gc
+
// Copyright 2017 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.
// Copyright 2017 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.
-// +build !nacl,!js,!wasip1,!gccgo
+//go:build !nacl && !js && !wasip1 && !gccgo
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
+//go:build !386 && !amd64p32 && !arm && !mips && !mipsle
+
// Copyright 2017 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.
// Copyright 2017 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.
-// +build !386,!amd64p32,!arm,!mips,!mipsle
-
package p
func f3(x *[1 << 31]byte) byte { // GC_ERROR "stack frame too large"
package p
func f3(x *[1 << 31]byte) byte { // GC_ERROR "stack frame too large"
-// +build !js,!wasip1,gc
+//go:build !js && !wasip1 && gc
+
// Copyright 2017 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.
// Copyright 2017 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.
-// +build !js,!wasip1,gc
+//go:build !js && !wasip1 && gc
+
// 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.
// 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.
// Copyright 2009 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.
// Copyright 2009 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.
// 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.
// 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.
//errorcheck -0 -race -m -m
//errorcheck -0 -race -m -m
-// +build linux,amd64 linux,ppc64le darwin,amd64 freebsd,amd64 netbsd,amd64 windows,amd64
+
+//go:build (linux && amd64) || (linux && ppc64le) || (darwin && amd64) || (freebsd && amd64) || (netbsd && amd64) || (windows && amd64)
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build !nacl,!js,!wasip1
+//go:build !nacl && !js && !wasip1
+
// 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.
// 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 cgo && linux && amd64
+
// 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.
// 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.
// license that can be found in the LICENSE file.
//go:build !nacl && !js
// license that can be found in the LICENSE file.
//go:build !nacl && !js
-// +build !nacl,!js,!wasip1,!gccgo
+//go:build !nacl && !js && !wasip1 && !gccgo
+
// 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.
// 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.
-// +build !nacl,!js,!wasip1,!gccgo
+//go:build !nacl && !js && !wasip1 && !gccgo
+
// 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.
// 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.
// run -gcflags=all=-d=checkptr
// run -gcflags=all=-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.
// 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.
-// +build !nacl,!js,!wasip1,gc
+//go:build !nacl && !js && !wasip1 && gc
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build cgo,linux,amd64
+//go:build cgo && linux && amd64
+
// 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.
// 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.
// run fake-arg-to-force-use-of-go-run
// run fake-arg-to-force-use-of-go-run
+//go:build cgo && !windows
+
// 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.
// 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.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build linux,amd64 darwin,amd64 linux,386
+//go:build (linux && amd64) || (darwin && amd64) || (linux && 386)
// 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.
// 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.
// errorcheck -0 -m
//go:build !goexperiment.newinliner
// errorcheck -0 -m
//go:build !goexperiment.newinliner
-// +build !goexperiment.newinliner
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheckdir -0 -m
//go:build !goexperiment.newinliner
// errorcheckdir -0 -m
//go:build !goexperiment.newinliner
-// +build !goexperiment.newinliner
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// buildrun -t 45
//go:build !js && !wasip1
// buildrun -t 45
//go:build !js && !wasip1
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// 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.
// 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.
// license that can be found in the LICENSE file.
//go:build cgo
// license that can be found in the LICENSE file.
//go:build cgo
//go:build !js && !wasip1
//go:build !js && !wasip1
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build !386,!arm,!mips,!mipsle,!amd64p32
+//go:build !386 && !arm && !mips && !mipsle && !amd64p32
+
// 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.
// 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.
+
+//go:build linux || darwin
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build !js,!wasip1,gc
+//go:build !js && !wasip1 && gc
+
// 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.
// 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.
// license that can be found in the LICENSE file.
// terribly slow on wasm
// license that can be found in the LICENSE file.
// terribly slow on wasm
-// +build !nacl,!js,!wasip1,gc
+//go:build !nacl && !js && !wasip1 && gc
+
// 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.
// 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.
-// +build amd64,!gcflags_noopt arm64,!gcflags_noopt
// errorcheck -0 -d=ssa/late_fuse/debug=1
// errorcheck -0 -d=ssa/late_fuse/debug=1
+//go:build (amd64 && !gcflags_noopt) || (arm64 && !gcflags_noopt)
+
// 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.
// 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 !nacl && !js
+
// Copyright 2011 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.
// Copyright 2011 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.
// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1
//go:build !goexperiment.newinliner
// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1
//go:build !goexperiment.newinliner
-// +build !goexperiment.newinliner
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// 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.
// 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.
// errorcheckandrundir -0 -d=ssa/intrinsics/debug
// errorcheckandrundir -0 -d=ssa/intrinsics/debug
-// +build amd64 arm64 arm s390x
+
+//go:build amd64 || arm64 || arm || s390x
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheck -0 -d=ssa/intrinsics/debug
// errorcheck -0 -d=ssa/intrinsics/debug
-// +build amd64 arm64 loong64 mips mipsle mips64 mips64le ppc64 ppc64le riscv64 s390x
+
+//go:build amd64 || arm64 || loong64 || mips || mipsle || mips64 || mips64le || ppc64 || ppc64le || riscv64 || s390x
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
-// +build !nacl,!js,!wasip1
+//go:build !nacl && !js && !wasip1
+
// 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.
// 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.
-// +build !nacl,!js,gc,!wasip1
+//go:build !nacl && !js && gc && !wasip1
+
// 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.
// 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.
-// +build !nacl,!js,!wasip1,gc
+//go:build !nacl && !js && !wasip1 && gc
+
// 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.
// 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.
// errorcheckwithauto -0 -l -live -wb=0 -d=ssa/insert_resched_checks/off
// errorcheckwithauto -0 -l -live -wb=0 -d=ssa/insert_resched_checks/off
//go:build !ppc64 && !ppc64le && !goexperiment.regabiargs
//go:build !ppc64 && !ppc64le && !goexperiment.regabiargs
-// +build !ppc64,!ppc64le,!goexperiment.regabiargs
// ppc64 needs a better tighten pass to make f18 pass
// rescheduling checks need to be turned off because there are some live variables across the inserted check call
// ppc64 needs a better tighten pass to make f18 pass
// rescheduling checks need to be turned off because there are some live variables across the inserted check call
// errorcheckwithauto -0 -l -live -wb=0 -d=ssa/insert_resched_checks/off
// errorcheckwithauto -0 -l -live -wb=0 -d=ssa/insert_resched_checks/off
//go:build (amd64 && goexperiment.regabiargs) || (arm64 && goexperiment.regabiargs)
//go:build (amd64 && goexperiment.regabiargs) || (arm64 && goexperiment.regabiargs)
-// +build amd64,goexperiment.regabiargs arm64,goexperiment.regabiargs
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheck -0 -m -live -std
//go:build !windows && !js && !wasip1
// errorcheck -0 -m -live -std
//go:build !windows && !js && !wasip1
-// +build !windows,!js,!wasip1
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheck -0 -d=ssa/prove/debug=1
// errorcheck -0 -d=ssa/prove/debug=1
package main
import "math"
package main
import "math"
+//go:build darwin || linux
+
// 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.
// 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.
// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1
//go:build goexperiment.newinliner
// errorcheckwithauto -0 -m -d=inlfuncswithclosures=1
//go:build goexperiment.newinliner
-// +build goexperiment.newinliner
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Test that the implementation catches nil ptr indirection
// in a large address space.
// Test that the implementation catches nil ptr indirection
// in a large address space.
-// +build !aix
-// +build !darwin !arm64
-// +build !windows !arm64
// Address space starts at 1<<32 on AIX and on darwin/arm64 and on windows/arm64, so dummy is too far.
// Address space starts at 1<<32 on AIX and on darwin/arm64 and on windows/arm64, so dummy is too far.
+//go:build !aix && (!darwin || !arm64) && (!windows || !arm64)
-// +build !wasm
-// +build !aix
+//go:build !wasm && !aix
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheck -0 -d=nil
//go:build !wasm && !aix
// errorcheck -0 -d=nil
//go:build !wasm && !aix
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Test that the implementation catches nil ptr indirection
// in a large address space.
// Test that the implementation catches nil ptr indirection
// in a large address space.
-// +build !nacl,!js,!aix,!wasip1,!gcflags_noopt,gc
+//go:build !nacl && !js && !aix && !wasip1 && !gcflags_noopt && gc
+
// 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.
// 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.
// errorcheck -0 -d=ssa/likelyadjust/debug=1,ssa/insert_resched_checks/off
// rescheduling check insertion is turned off because the inserted conditional branches perturb the errorcheck
// errorcheck -0 -d=ssa/likelyadjust/debug=1,ssa/insert_resched_checks/off
// rescheduling check insertion is turned off because the inserted conditional branches perturb the errorcheck
// 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.
// 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.
-// +build amd64 s390x arm64
// errorcheck -0 -d=ssa/phiopt/debug=3
// errorcheck -0 -d=ssa/phiopt/debug=3
+//go:build amd64 || s390x || arm64
+
// 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.
// 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.
// errorcheck -0 -d=ssa/prove/debug=1
//go:build amd64
// errorcheck -0 -d=ssa/prove/debug=1
//go:build amd64
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// errorcheck -0 -d=ssa/prove/debug=2
// errorcheck -0 -d=ssa/prove/debug=2
// Copyright 2022 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.
// Copyright 2022 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.
// errorcheck -0 -d=ssa/prove/debug=1
// errorcheck -0 -d=ssa/prove/debug=1
package main
func invert(b func(), n int) {
package main
func invert(b func(), n int) {
+//go:build linux || darwin
+
// 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.
// 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.
-// +build !plan9,!windows,!wasip1
+//go:build !plan9 && !windows && !wasip1
+
// Copyright 2009 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.
// Copyright 2009 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.
// arguments. (pointer-to-nih types are okay though.)
//go:build cgo
// arguments. (pointer-to-nih types are okay though.)
//go:build cgo