diff options
author | Ian Lance Taylor <iant@golang.org> | 2012-02-01 07:31:00 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2012-02-01 07:31:00 -0800 |
commit | f97bb1c634472e30d3f47cf49e782b7598bbfd97 (patch) | |
tree | 83bff1b6d5af65aa2c0de90c6237145bb84606fb /test/chan | |
parent | 6e555614649592d3e68be4a81dc7d194023d88f8 (diff) | |
download | go-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.go | 4 |
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 } }) |