mirror of
https://github.com/golang/go.git
synced 2026-02-13 19:04:41 +00:00
test: add support for build tags.
This enables a few tests that were only executed unconditionnally. R=rsc, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7103051
This commit is contained in:
parent
cf1f542420
commit
4f6a2b9840
5 changed files with 110 additions and 25 deletions
|
|
@ -1,7 +1,5 @@
|
|||
// [ $A == 6 ] || errchk $G -e $D/$F.go
|
||||
|
||||
// NOTE: This test is not run by 'run.go' and so not run by all.bash.
|
||||
// To run this test you must use the ./run shell script.
|
||||
// +build 386 arm
|
||||
// errorcheck
|
||||
|
||||
// Copyright 2011 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
|
|
@ -14,4 +12,4 @@ func main() {
|
|||
var arr [1000200030]int // ERROR "type .* too large"
|
||||
arr_bkup := arr
|
||||
_ = arr_bkup
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue