github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/vet/testdata/buildtag/buildtag.go (about)

     1  // Copyright 2013 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file contains tests for the buildtag checker.
     6  
     7  // +builder // ERROR "possible malformed \+build comment"
     8  // +build !ignore
     9  
    10  package testdata
    11  
    12  // +build toolate // ERROR "build comment must appear before package clause and be followed by a blank line$"
    13  
    14  var _ = 3
    15  
    16  var _ = `
    17  // +build notacomment
    18  `