]> Cypherpunks repositories - gostls13.git/commit
test: add failing test case for inlined type switches
authorMatthew Dempsky <mdempsky@google.com>
Wed, 7 Sep 2022 02:28:11 +0000 (19:28 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 7 Sep 2022 17:26:34 +0000 (17:26 +0000)
commit10ffb27528af47c28ee55683421056e3de5bee17
treef6ed4efe13f49898ecc0e9db0e0230e6033321fc
parent2c45feb4d7b8d214d10ca7a34f0986b4e3d00ca1
test: add failing test case for inlined type switches

The unified frontend ICEs when inlining a function that contains a
function literal, which captures both a type switch case variable and
another variable.

Updates #54912.

Change-Id: I0e16d371ed5df48a70823beb0bf12110a5a17266
Reviewed-on: https://go-review.googlesource.com/c/go/+/428917
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
test/fixedbugs/issue54912.dir/a.go [new file with mode: 0644]
test/fixedbugs/issue54912.dir/main.go [new file with mode: 0644]
test/fixedbugs/issue54912.go [new file with mode: 0644]
test/run.go