...

Text file src/cmd/go/testdata/script/build_issue62156.txt

Documentation: cmd/go/testdata/script

     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
     5go build
     6
     7-- go.mod --
     8module m
     9
    10go 1.20
    11-- main.go --
    12package main
    13
    14import "m/sub"
    15
    16func main() { sub.F() }
    17-- sub/sub.go --
    18package sub
    19
    20type iface interface{ m() }
    21
    22func F() {
    23	f := func(rt []iface) []iface {
    24		return append([]iface{}, rt...)
    25	}
    26	f(nil)
    27}

View as plain text