]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: disallow fallthrough in final case of switch
authorTyler Bunnell <tylerbunnell@gmail.com>
Fri, 15 Mar 2013 04:35:09 +0000 (00:35 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Mar 2013 04:35:09 +0000 (00:35 -0400)
commitf6a952599e2e9d75b50d1b1252397325111b1a87
tree4e52cd38038c383664764478986cc65238c787ba
parentd94da6fab584ebba9fd9b9adcecc173a4174932f
cmd/gc: disallow fallthrough in final case of switch

Small change to cmd/gc to catch a "fallthrough" in the final case of a switch.

R=golang-dev, rsc, mtj
CC=golang-dev
https://golang.org/cl/7841043
src/cmd/gc/swt.c
test/switch.go
test/switch4.go [new file with mode: 0644]