1// errorcheck -e=0
2
3// Copyright 2017 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// Issue 20298: "imported and not used" error report order was non-deterministic.
8// This test works by limiting the number of errors (-e=0)
9// and checking that the errors are all at the beginning.
10
11package p
12
13import (
14	"bufio"       // ERROR "imported and not used"
15	"bytes"       // ERROR "imported and not used"
16	"crypto/x509" // ERROR "imported and not used"
17	"flag"        // ERROR "imported and not used"
18	"fmt"         // ERROR "imported and not used"
19	"io"          // ERROR "imported and not used"
20	"io/ioutil"   // ERROR "imported and not used"
21	"log"         // ERROR "imported and not used"
22	"math"        // ERROR "imported and not used"
23	"math/big"    // ERROR "imported and not used" "too many errors"
24	"math/bits"
25	"net"
26	"net/http"
27	"os"
28	"path"
29	"path/filepath"
30	"regexp"
31	"strings"
32)
33