diff options
| author | Rob Pike <r@golang.org> | 2016-10-12 19:51:02 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2016-10-14 23:38:29 +0000 |
| commit | be48aa3f3a16006ab31c424487af352ca374afed (patch) | |
| tree | b58868fdec6baaa52904835ccf6262606cdde415 /src/database | |
| parent | 5567b878915f7c2f1e7ee3898125c2cd2b7fe287 (diff) | |
| download | go-be48aa3f3a16006ab31c424487af352ca374afed.tar.xz | |
cmd/cover: handle gotos
If a labeled statement is the target of a goto, we must treat it as the
boundary of a new basic block, but only if it is not already the boundary
of a basic block such as a labeled for loop.
Fixes #16624
Now reports 100% coverage for the test in the issue.
Change-Id: If118bb6ff53a96c738e169d92c03cb3ce97bad0e
Reviewed-on: https://go-review.googlesource.com/30977
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/database')
0 files changed, 0 insertions, 0 deletions
