1// Test that blank imports in library packages are flagged.
2
3// Package foo ...
4package foo
5
6// The instructions need to go before the imports below so they will not be
7// mistaken for documentation.
8
9/* MATCH /blank import/ */ import _ "encoding/json"
10
11import (
12	"fmt"
13
14	/* MATCH /blank import/ */ _ "os"
15
16	/* MATCH /blank import/ */ _ "net/http"
17	_ "path"
18)
19
20import _ "encoding/base64" // Don't gripe about this
21
22import (
23	// Don't gripe about these next two lines.
24	_ "compress/zlib"
25	_ "syscall"
26
27	/* MATCH /blank import/ */ _ "path/filepath"
28)
29
30import (
31	"go/ast"
32	_ "go/scanner" // Don't gripe about this or the following line.
33	_ "go/token"
34)
35
36var (
37	_ fmt.Stringer // for "fmt"
38	_ ast.Node     // for "go/ast"
39)
40