]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test: match gccgo import error messages
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2013 03:02:11 +0000 (19:02 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2013 03:02:11 +0000 (19:02 -0800)
Gccgo doesn't have the same equivalent of file name and
package as the gc compiler, so the error messages are
necessarily different.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/40510048

test/fixedbugs/issue5957.dir/c.go
test/import1.go
test/import4.dir/empty.go
test/import4.dir/import4.go

index 42c88177b5cbde40b35990a34c4692fe9e09fca5..a1781d4d406d09bebd872794a0d9cca04516e40d 100644 (file)
@@ -1,12 +1,12 @@
 package p
 
 import (
-       "./a" // ERROR "imported and not used: \x22a\x22 as surprise"
-       "./b" // ERROR "imported and not used: \x22b\x22 as surprise2"
-       b "./b" // ERROR "imported and not used: \x22b\x22$"
-       foo "math" // ERROR "imported and not used: \x22math\x22 as foo"
+       "./a" // ERROR "imported and not used: \x22a\x22 as surprise|imported and not used: surprise"
+       "./b" // GC_ERROR "imported and not used: \x22b\x22 as surprise2|imported and not used: surprise2"
+       b "./b" // ERROR "imported and not used: \x22b\x22$|imported and not used: surprise2"
+       foo "math" // ERROR "imported and not used: \x22math\x22 as foo|imported and not used: math"
        "fmt" // actually used
-       "strings" // ERROR "imported and not used: \x22strings\x22"
+       "strings" // ERROR "imported and not used: \x22strings\x22|imported and not used: strings"
 )
 
 var _ = fmt.Printf
index d2bb55cbff5a85db88223adb00a738a11a3a4851..2433b5f2ad2b479a5346a721289f4e140dc2a234 100644 (file)
@@ -15,5 +15,5 @@ import bufio "os"     // ERROR "redeclared|redefinition|incompatible" "imported and
 import (
        "fmt"   // GCCGO_ERROR "previous|not used"
        fmt "math"      // ERROR "redeclared|redefinition|incompatible" "imported and not used: \x22math\x22 as fmt"
-       . "math"        // ERROR "imported and not used: \x22math\x22$"
+       . "math"        // GC_ERROR "imported and not used: \x22math\x22$"
 )
index c8214f36da6c1d683e5a1c32b2d7386319a4d059..1dffa170dfcb6f433c0695285aa5a79bc981be61 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package P
+package empty
 
 import ( )
 const ( )
index b9f973f1724be3ee3bc393d6d2e999ea58ebdefd..f92c663d04b741f33c536427700149ed06a8d22b 100644 (file)
@@ -18,7 +18,7 @@ import X "math"       // ERROR "imported and not used.*math"
 import . "bufio"       // ERROR "imported and not used.*bufio"
 
 // again, package without anything in it
-import "./empty"       // ERROR "imported and not used.*empty"
-import Z "./empty"     // ERROR "imported and not used.*empty"
+import "./empty"       // GC_ERROR "imported and not used.*empty"
+import Z "./empty"     // GC_ERROR "imported and not used.*empty"
 import . "./empty"     // ERROR "imported and not used.*empty"