]> Cypherpunks repositories - gostls13.git/commitdiff
test: only check for issue11362 error with gc
authorIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2020 05:43:50 +0000 (21:43 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Dec 2020 20:46:33 +0000 (20:46 +0000)
With the gc compiler the import path implies the package path,
so keeping a canonical path is important.  With the gofrontend
this is not the case, so we don't need to report this as a bug.

Change-Id: I245e34f9b66383bd17e79438d4b002a3e20aa994
Reviewed-on: https://go-review.googlesource.com/c/go/+/278115
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
test/fixedbugs/issue11362.go

index 9e9e599595f6e8534a5e9d872c0692e69eb047df..964e5fdf6b7ce843c4e12f99f91b25f41c0c8bb3 100644 (file)
@@ -8,7 +8,7 @@
 
 package main
 
-import _ "unicode//utf8" // ERROR "non-canonical import path .unicode//utf8. \(should be .unicode/utf8.\)" "can't find import: .unicode//utf8."
+import _ "unicode//utf8" // GC_ERROR "non-canonical import path .unicode//utf8. \(should be .unicode/utf8.\)" "can't find import: .unicode//utf8."
 
 func main() {
 }