Source file src/cmd/vet/testdata/buildtag/buildtag.go

     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  // ERRORNEXT "possible malformed [+]build comment"
     8  // +builder
     9  // +build !ignore
    10  
    11  package testdata
    12  
    13  // ERRORNEXT "misplaced \+build comment"
    14  // +build toolate
    15  
    16  var _ = 3
    17  
    18  var _ = `
    19  // +build notacomment
    20  `
    21  

View as plain text