1// run
2
3//go:build !wasm
4
5// Copyright 2021 The Go Authors. All rights reserved.
6// Use of this source code is governed by a BSD-style
7// license that can be found in the LICENSE file.
8
9package main
10
11import "fmt"
12
13//go:registerparams
14//go:noinline
15func passStruct6(a Struct6) Struct6 {
16	return a
17}
18
19type Struct6 struct {
20	Struct1
21}
22
23type Struct1 struct {
24	A, B, C uint
25}
26
27func main() {
28	fmt.Println(passStruct6(Struct6{Struct1{1, 2, 3}}))
29}
30