File tree 4 files changed +9
-9
lines changed 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
package p
2
2
3
3
import (
4
- "./a" // ERROR "imported and not used: \x22a\x22 as surprise"
5
- "./b" // ERROR "imported and not used: \x22b\x22 as surprise2"
6
- b "./b" // ERROR "imported and not used: \x22b\x22$"
7
- foo "math" // ERROR "imported and not used: \x22math\x22 as foo"
4
+ "./a" // ERROR "imported and not used: \x22a\x22 as surprise|imported and not used: surprise "
5
+ "./b" // GC_ERROR "imported and not used: \x22b\x22 as surprise2|imported and not used: surprise2"
6
+ b "./b" // ERROR "imported and not used: \x22b\x22$|imported and not used: surprise2 "
7
+ foo "math" // ERROR "imported and not used: \x22math\x22 as foo|imported and not used: math "
8
8
"fmt" // actually used
9
- "strings" // ERROR "imported and not used: \x22strings\x22"
9
+ "strings" // ERROR "imported and not used: \x22strings\x22|imported and not used: strings "
10
10
)
11
11
12
12
var _ = fmt .Printf
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ import bufio "os" // ERROR "redeclared|redefinition|incompatible" "imported and
15
15
import (
16
16
"fmt" // GCCGO_ERROR "previous|not used"
17
17
fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt"
18
- . "math" // ERROR "imported and not used: \x22math\x22$"
18
+ . "math" // GC_ERROR "imported and not used: \x22math\x22$"
19
19
)
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- package P
5
+ package empty
6
6
7
7
import ( )
8
8
const ( )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import X "math" // ERROR "imported and not used.*math"
18
18
import . "bufio" // ERROR "imported and not used.*bufio"
19
19
20
20
// again, package without anything in it
21
- import "./empty" // ERROR "imported and not used.*empty"
22
- import Z "./empty" // ERROR "imported and not used.*empty"
21
+ import "./empty" // GC_ERROR "imported and not used.*empty"
22
+ import Z "./empty" // GC_ERROR "imported and not used.*empty"
23
23
import . "./empty" // ERROR "imported and not used.*empty"
24
24
You can’t perform that action at this time.
0 commit comments