diff options
| author | Ian Lance Taylor <iant@golang.org> | 2022-10-08 11:17:47 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-10-10 21:47:48 +0000 |
| commit | bb2a96b79df71c4b021c8611b916a2f402166d3b (patch) | |
| tree | f574e94015d68492a11efbf5897ee229ae1c13d5 | |
| parent | fce449680a241a283f7661edb94eef5427bf595c (diff) | |
| download | go-bb2a96b79df71c4b021c8611b916a2f402166d3b.tar.xz | |
test: add test case that caused a bogus error from gofrontend
For #56109
Change-Id: I999763e463fac57732a92f5e396f8fa8c35bd2e1
Reviewed-on: https://go-review.googlesource.com/c/go/+/440297
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
| -rw-r--r-- | test/fixedbugs/issue56109.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/fixedbugs/issue56109.go b/test/fixedbugs/issue56109.go new file mode 100644 index 0000000000..68e09b1332 --- /dev/null +++ b/test/fixedbugs/issue56109.go @@ -0,0 +1,18 @@ +// compile + +// Copyright 2022 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package main + +import "math" + +func main() { + f := func(p bool) { + if p { + println("hi") + } + } + go f(true || math.Sqrt(2) > 1) +} |
