Debian Codegraph @

test/abi/struct_lower_1.go

raw
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
9 package main
10
11 import "fmt"
12
13 //go:registerparams
14 //go:noinline
15 func passStruct6(a Struct6) Struct6 {
16 return a
17 }
18
19 type Struct6 struct {
20 Struct1
21 }
22
23 type Struct1 struct {
24 A, B, C uint
25 }
26
27 func main() {
28 fmt.Println(passStruct6(Struct6{Struct1{1, 2, 3}}))
29 }