]> Cypherpunks repositories - gostls13.git/commit
test: add a test for gccgo bug in handling break statement in a select
authorCherry Zhang <cherryyz@google.com>
Wed, 10 Jul 2019 14:58:59 +0000 (10:58 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 10 Jul 2019 18:02:11 +0000 (18:02 +0000)
commita1bcee4f1c196681397f1140e4338d056a188a3e
treecdc47c087874a74798ee70d452897147f7e35803
parenta05c13206450322844dd67cdf2acac430338c7cd
test: add a test for gccgo bug in handling break statement in a select

Gccgo CL 184998 added optimizations for one- and two-case select
statements. But it didn't handle break statement in the select
case correctly. The fix is CL 185519. This CL adds a test.

Change-Id: Ide1b199f106172b41dd77c1f6e0d662fccdd8cc5
Reviewed-on: https://go-review.googlesource.com/c/go/+/185520
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/chan/select8.go [new file with mode: 0644]