github.com/cockroachdb/tools@v0.0.0-20230222021103-a6d27438930d/go/analysis/passes/directive/testdata/src/a/misplaced.s (about)

     1  // Copyright 2023 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  // want +1 `//go:debug directive only valid in Go source files`
     6  //go:debug panicnil=1
     7  
     8  /*
     9  can skip over comments
    10  //go:debug doesn't matter here
    11  */
    12  
    13  // want +1 `//go:debug directive only valid in Go source files`
    14  //go:debug panicnil=1
    15  
    16  package a
    17  
    18  // no error here because we can't parse this far
    19  //go:debug panicnil=1