summaryrefslogtreecommitdiff
path: root/src/cmd/vet/test_buildtag_bad.go
blob: 0a0a39bd1f744649a545927d33258f4e674b5bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This file contains misplaced or malformed build constraints.
// The Go tool will skip it, because the constraints are invalid.
// It serves only to test the tag checker during make test.

// Mention +build // ERROR "possible malformed \+build comment"

// +build !!bang // ERROR "invalid double negative in build constraint"
// +build @#$ // ERROR "invalid non-alphanumeric build constraint"

// +build toolate // ERROR "build comment appears too late in file"
package bad

// This is package 'bad' rather than 'main' so the erroneous build
// tag doesn't end up looking like a package doc for the vet command
// when examined by godoc.