2012-02-16 21:50:37 -07:00
|
|
|
// errorcheck
|
2009-05-08 17:40:55 -06:00
|
|
|
|
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2012-02-23 00:47:26 -07:00
|
|
|
// Verify that import conflicts are detected by the compiler.
|
|
|
|
// Does not compile.
|
2009-05-08 17:40:55 -06:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
2010-02-01 17:35:23 -07:00
|
|
|
import "bufio" // GCCGO_ERROR "previous|not used"
|
2011-08-16 09:14:26 -06:00
|
|
|
import bufio "os" // ERROR "redeclared|redefinition|incompatible" "imported and not used"
|
2009-08-19 16:18:08 -06:00
|
|
|
|
2009-05-08 17:40:55 -06:00
|
|
|
import (
|
2010-09-03 18:36:13 -06:00
|
|
|
"fmt" // GCCGO_ERROR "previous|not used"
|
2013-09-20 13:25:43 -06:00
|
|
|
fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt"
|
|
|
|
. "math" // ERROR "imported and not used: \x22math\x22$"
|
2009-12-10 12:25:54 -07:00
|
|
|
)
|