diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2015-07-20 15:39:14 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2015-07-23 00:45:26 +0000 |
commit | 61aa0953e542eb047f22905f84c7d627a35b8607 (patch) | |
tree | 9e588eb5f4ea26ca853a219d100e34001d3a257d /test/label.go | |
parent | 3e7e519c367f4ab5b2d9f863302cd0946fe74800 (diff) | |
download | go-61aa0953e542eb047f22905f84c7d627a35b8607.tar.gz go-61aa0953e542eb047f22905f84c7d627a35b8607.zip |
[dev.ssa] cmd/compile: implement control flow handling
Add label and goto checks and improve test coverage.
Implement OSWITCH and OSELECT.
Implement OBREAK and OCONTINUE.
Allow generation of code in dead blocks.
Change-Id: Ibebb7c98b4b2344f46d38db7c9dce058c56beaac
Reviewed-on: https://go-review.googlesource.com/12445
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'test/label.go')
-rw-r--r-- | test/label.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/label.go b/test/label.go index a1811c2d68..c3c0c27edd 100644 --- a/test/label.go +++ b/test/label.go @@ -58,4 +58,8 @@ L10: default: break L10 } + + goto L10 + + goto go2 // ERROR "label go2 not defined" } |