summaryrefslogtreecommitdiff
path: root/test/chan
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2012-02-01 07:31:00 -0800
committerIan Lance Taylor <iant@golang.org>2012-02-01 07:31:00 -0800
commitf97bb1c634472e30d3f47cf49e782b7598bbfd97 (patch)
tree83bff1b6d5af65aa2c0de90c6237145bb84606fb /test/chan
parent6e555614649592d3e68be4a81dc7d194023d88f8 (diff)
downloadgo-f97bb1c634472e30d3f47cf49e782b7598bbfd97.tar.gz
test: test that x := <-c accepts a general expression
The gccgo compiler used to fail to parse this. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5610051
Diffstat (limited to 'test/chan')
-rw-r--r--test/chan/select3.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/chan/select3.go b/test/chan/select3.go
index d919de3e0..fd881c90e 100644
--- a/test/chan/select3.go
+++ b/test/chan/select3.go
@@ -197,13 +197,13 @@ func main() {
})
testBlock(never, func() {
select {
- case x := <-closedch:
+ case x := (<-closedch):
_ = x
}
})
testBlock(never, func() {
select {
- case x, ok := <-closedch:
+ case x, ok := (<-closedch):
_, _ = x, ok
}
})