Merge from trunk
[official-gcc.git] / gcc / testsuite / go.test / test / import1.go
blob2433b5f2ad2b479a5346a721289f4e140dc2a234
1 // errorcheck
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.
7 // Verify that import conflicts are detected by the compiler.
8 // Does not compile.
10 package main
12 import "bufio" // GCCGO_ERROR "previous|not used"
13 import bufio "os" // ERROR "redeclared|redefinition|incompatible" "imported and not used"
15 import (
16 "fmt" // GCCGO_ERROR "previous|not used"
17 fmt "math" // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt"
18 . "math" // GC_ERROR "imported and not used: \x22math\x22$"