summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/build_issue62156.txt
blob: d241570cf61955a445f03bed1bfcc442ce797f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Regression test for https://go.dev/issue/62156:
# DWARF generation for inlined functions may require more runtime type
# descriptors to be written.

go build

-- go.mod --
module m

go 1.20
-- main.go --
package main

import "m/sub"

func main() { sub.F() }
-- sub/sub.go --
package sub

type iface interface{ m() }

func F() {
	f := func(rt []iface) []iface {
		return append([]iface{}, rt...)
	}
	f(nil)
}