diff options
Diffstat (limited to 'test/newexpr.go')
| -rw-r--r-- | test/newexpr.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/newexpr.go b/test/newexpr.go index c9a8804d4e..00d753c572 100644 --- a/test/newexpr.go +++ b/test/newexpr.go @@ -37,3 +37,10 @@ func main() { } } } + +// Regression test for ICE in staticdata.GlobalLinksym from +// use of autotemp outside a function (go.dev/issue/77237). +var ( + x = new(0) + y = x +) |
