aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2014-08-11 19:27:21 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2014-08-11 19:27:21 +0000
commit69b682f23a9b3a7fb04fd73bb6b59d7544455d3e (patch)
tree26620acf21a60fa3a202e1685d16094b13414481 /gcc/testsuite/go.test
parent17d9767f79871acc437342147837d842fa52b3de (diff)
downloadgcc-69b682f23a9b3a7fb04fd73bb6b59d7544455d3e.zip
gcc-69b682f23a9b3a7fb04fd73bb6b59d7544455d3e.tar.gz
gcc-69b682f23a9b3a7fb04fd73bb6b59d7544455d3e.tar.bz2
compiler: Change return type comma-ok assignments to untyped bools.
Fixes https://code.google.com/p/go/issues/detail?id=8476. The test will be submitted once this is fixed in gc and go/types. From-SVN: r213833
Diffstat (limited to 'gcc/testsuite/go.test')
-rw-r--r--gcc/testsuite/go.test/test/named1.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/go.test/test/named1.go b/gcc/testsuite/go.test/test/named1.go
index 62b874c..4f122e4 100644
--- a/gcc/testsuite/go.test/test/named1.go
+++ b/gcc/testsuite/go.test/test/named1.go
@@ -41,21 +41,21 @@ func main() {
asBool(1 != 2) // ok now
asBool(i < j) // ok now
- _, b = m[2] // ERROR "cannot .* bool.*type Bool"
+ _, b = m[2]
var inter interface{}
- _, b = inter.(Map) // ERROR "cannot .* bool.*type Bool"
+ _, b = inter.(Map)
_ = b
var minter interface {
M()
}
- _, b = minter.(Map) // ERROR "cannot .* bool.*type Bool"
+ _, b = minter.(Map)
_ = b
_, bb := <-c
asBool(bb) // ERROR "cannot use.*type bool.*as type Bool"
- _, b = <-c // ERROR "cannot .* bool.*type Bool"
+ _, b = <-c
_ = b
asString(String(slice)) // ok