]> Cypherpunks.ru repositories - gostls13.git/blob - test/import4.go
gc: fix imported and not used message - show path
[gostls13.git] / test / import4.go
1 // $G $D/empty.go && errchk $G $D/$F.go
2
3 // Copyright 2009 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 package main
8
9 // various kinds of imported and not used
10
11 // standard
12 import "fmt"    // ERROR "imported and not used.*fmt"
13
14 // renamed
15 import X "math" // ERROR "imported and not used.*math"
16
17 // import dot
18 import . "bufio"        // ERROR "imported and not used.*bufio"
19
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"
23 import . "./empty"      // ERROR "imported and not used.*empty"
24