2012-02-17 04:50:37 +00:00
|
|
|
// errorcheck
|
2009-05-08 23:40:55 +00: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 07:47:26 +00:00
|
|
|
// Verify that import conflicts are detected by the compiler.
|
|
|
|
// Does not compile.
|
2009-05-08 23:40:55 +00:00
|
|
|
|
|
|
|
package main
|
|
|
|
|
2010-02-02 00:35:23 +00:00
|
|
|
import "bufio" // GCCGO_ERROR "previous|not used"
|
2011-08-16 15:14:26 +00:00
|
|
|
import bufio "os" // ERROR "redeclared|redefinition|incompatible" "imported and not used"
|
2009-08-19 22:18:08 +00:00
|
|
|
|
2009-05-08 23:40:55 +00:00
|
|
|
import (
|
2010-09-04 00:36:13 +00:00
|
|
|
"fmt" // GCCGO_ERROR "previous|not used"
|
2013-09-20 19:25:43 +00:00
|
|
|
fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt"
|
2013-12-13 03:02:11 +00:00
|
|
|
. "math" // GC_ERROR "imported and not used: \x22math\x22$"
|
2009-12-10 19:25:54 +00:00
|
|
|
)
|