~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/cmd/vet/test_buildtag_bad.go

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file contains misplaced or malformed build constraints.
 
2
// The Go tool will skip it, because the constraints are invalid.
 
3
// It serves only to test the tag checker during make test.
 
4
 
 
5
// Mention +build // ERROR "possible malformed \+build comment"
 
6
 
 
7
// +build !!bang // ERROR "invalid double negative in build constraint"
 
8
// +build @#$ // ERROR "invalid non-alphanumeric build constraint"
 
9
 
 
10
// +build toolate // ERROR "build comment appears too late in file"
 
11
package bad
 
12
 
 
13
// This is package 'bad' rather than 'main' so the erroneous build
 
14
// tag doesn't end up looking like a package doc for the vet command
 
15
// when examined by godoc.