Text file src/cmd/go/testdata/script/build_issue62156.txt
1 # Regression test for https://go.dev/issue/62156: 2 # DWARF generation for inlined functions may require more runtime type 3 # descriptors to be written. 4 5 go build 6 7 -- go.mod -- 8 module m 9 10 go 1.20 11 -- main.go -- 12 package main 13 14 import "m/sub" 15 16 func main() { sub.F() } 17 -- sub/sub.go -- 18 package sub 19 20 type iface interface{ m() } 21 22 func F() { 23 f := func(rt []iface) []iface { 24 return append([]iface{}, rt...) 25 } 26 f(nil) 27 } 28