mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
test: migrate remaining files to go:build syntax
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>
This commit is contained in:
parent
ff6dd7125e
commit
b2fd76ab8d
@ -191,7 +191,7 @@ func firstComment(filename string) (first string) {
|
||||
}
|
||||
text = strings.TrimSpace(text[2:])
|
||||
|
||||
if strings.HasPrefix(text, "+build ") {
|
||||
if strings.HasPrefix(text, "go:build ") {
|
||||
panic("skip")
|
||||
}
|
||||
if first == "" {
|
||||
|
@ -192,7 +192,7 @@ func firstComment(filename string) string {
|
||||
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 == "" {
|
||||
|
@ -1,7 +1,6 @@
|
||||
// compile
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2023 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build darwin linux
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64,!gcflags_noopt
|
||||
// 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.
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
// asmcheck -gcflags=-clobberdead
|
||||
|
||||
// +build amd64 arm64
|
||||
//go:build amd64 || arm64
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,6 @@
|
||||
// asmcheck -gcflags=-clobberdeadreg
|
||||
|
||||
// +build amd64
|
||||
//go:build amd64
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64
|
||||
// asmcheck -gcflags=-spectre=ret
|
||||
|
||||
//go:build amd64
|
||||
|
||||
package codegen
|
||||
|
||||
func CallFunc(f func()) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64
|
||||
// asmcheck -gcflags=-spectre=index
|
||||
|
||||
//go:build 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.
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!plan9
|
||||
// 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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build 386 amd64p32 arm
|
||||
// errorcheck
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64
|
||||
// errorcheck
|
||||
|
||||
//go:build amd64
|
||||
|
||||
// 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.
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,8 +1,7 @@
|
||||
//go:build linux && !ppc64 && gc && cgo
|
||||
// +build linux,!ppc64,gc,cgo
|
||||
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,disabled_see_issue_18589
|
||||
// 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.
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
// Does not work with gccgo, which uses a smaller (but still permitted)
|
||||
// exponent size.
|
||||
// +build !gccgo
|
||||
//go:build !gccgo
|
||||
|
||||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -3,7 +3,6 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ppc64 || ppc64le
|
||||
// +build ppc64 ppc64le
|
||||
|
||||
package main
|
||||
|
||||
|
@ -3,7 +3,6 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !ppc64 && !ppc64le
|
||||
// +build !ppc64,!ppc64le
|
||||
|
||||
package main
|
||||
|
||||
|
@ -17,6 +17,5 @@
|
||||
// able to unwind past that point.
|
||||
|
||||
//go:build !windows && !wasm && !gccgo
|
||||
// +build !windows,!wasm,!gccgo
|
||||
|
||||
package ignored
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !386
|
||||
// run
|
||||
|
||||
//go:build !386
|
||||
|
||||
// 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.
|
||||
|
@ -1,5 +1,6 @@
|
||||
// errorcheck -0 -race
|
||||
// +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
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build gc
|
||||
// run
|
||||
|
||||
//go:build 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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,!android,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,6 @@
|
||||
// run
|
||||
// +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
|
||||
|
@ -1,5 +1,6 @@
|
||||
// errorcheck -0 -race
|
||||
// +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
|
||||
|
@ -1,9 +1,10 @@
|
||||
// run
|
||||
|
||||
//go:build amd64
|
||||
|
||||
// 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
|
||||
|
||||
package main
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !amd64,!386
|
||||
//go:build !amd64 && !386
|
||||
|
||||
package main
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build amd64 386
|
||||
//go:build amd64 || 386
|
||||
|
||||
package main
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// runindir
|
||||
|
||||
// +build !nacl
|
||||
//go:build !nacl
|
||||
|
||||
// Copyright 2019 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,5 +1,6 @@
|
||||
// errorcheck -0 -race
|
||||
// +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
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,!android,!gccgo
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,5 +1,6 @@
|
||||
// errorcheck -0 -race
|
||||
// +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
|
||||
|
@ -1,5 +1,6 @@
|
||||
// run
|
||||
// +build !js,!wasip1
|
||||
|
||||
//go:build !js && !wasip1
|
||||
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build arm
|
||||
//go:build arm
|
||||
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build arm
|
||||
// builddir
|
||||
|
||||
//go:build arm
|
||||
|
||||
// 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.
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,6 +1,6 @@
|
||||
// errorcheck
|
||||
|
||||
// +build amd64
|
||||
//go:build amd64
|
||||
|
||||
// Copyright 2017 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build cgo,linux,amd64
|
||||
// run -race
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,6 @@
|
||||
// run
|
||||
|
||||
// +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
|
||||
|
@ -1,11 +1,11 @@
|
||||
// errorcheck
|
||||
|
||||
//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.
|
||||
|
||||
// +build !386,!amd64p32,!arm,!mips,!mipsle
|
||||
|
||||
package p
|
||||
|
||||
func f3(x *[1 << 31]byte) byte { // GC_ERROR "stack frame too large"
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64
|
||||
// compile
|
||||
|
||||
//go:build amd64
|
||||
|
||||
// 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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64p32
|
||||
// run
|
||||
|
||||
//go:build amd64p32
|
||||
|
||||
// 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.
|
||||
|
@ -1,5 +1,6 @@
|
||||
//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
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,12 +1,11 @@
|
||||
// +build cgo
|
||||
// run -race
|
||||
|
||||
//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.
|
||||
|
||||
// +build linux,amd64
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -5,6 +5,5 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !nacl && !js
|
||||
// +build !nacl,!js
|
||||
|
||||
package ignored
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,!gccgo
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,!gccgo
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build cgo
|
||||
// run -gcflags=all=-d=checkptr
|
||||
|
||||
//go:build cgo
|
||||
|
||||
// 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.
|
||||
|
@ -1,6 +1,6 @@
|
||||
// run
|
||||
|
||||
// +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
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build cgo,linux,amd64
|
||||
// run -race
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build cgo,!windows
|
||||
// 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.
|
||||
|
@ -4,6 +4,6 @@
|
||||
// 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)
|
||||
|
||||
package ignored
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build js
|
||||
// run
|
||||
|
||||
//go:build js
|
||||
|
||||
// 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.
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,7 +1,6 @@
|
||||
// buildrun -t 45
|
||||
|
||||
//go:build !js && !wasip1
|
||||
// +build !js,!wasip1
|
||||
|
||||
// Copyright 2021 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build cgo
|
||||
// runindir
|
||||
|
||||
//go:build cgo
|
||||
|
||||
// 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.
|
||||
|
@ -5,7 +5,6 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build cgo
|
||||
// +build cgo
|
||||
|
||||
package main
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// run
|
||||
|
||||
//go:build !js && !wasip1
|
||||
// +build !js,!wasip1
|
||||
|
||||
// Copyright 2022 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !386,!arm,!mips,!mipsle,!amd64p32
|
||||
// compile
|
||||
|
||||
//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.
|
||||
|
@ -1,5 +1,6 @@
|
||||
// run
|
||||
// +build linux darwin
|
||||
|
||||
//go:build linux || darwin
|
||||
|
||||
// Copyright 2020 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -5,7 +5,7 @@
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// terribly slow on wasm
|
||||
// +build !wasm
|
||||
//go:build !wasm
|
||||
|
||||
package main
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js,!wasip1,gc
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64,!gcflags_noopt arm64,!gcflags_noopt
|
||||
// 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.
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build !nacl,!js
|
||||
// run
|
||||
|
||||
//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.
|
||||
|
@ -1,7 +1,6 @@
|
||||
// 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
|
||||
|
@ -1,6 +1,7 @@
|
||||
// +build amd64
|
||||
// errorcheck -0 -m
|
||||
|
||||
//go:build 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.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user