Debian Codegraph @

test/abi/fuzz_trailing_zero_field.go

raw
1 // run
2
3 // Copyright 2021 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package main
8
9 var p0exp = S1{
10 F1: complex(float64(2.3640607624715027), float64(-0.2717825524109192)),
11 F2: S2{F1: 9},
12 F3: 103050709,
13 }
14
15 type S1 struct {
16 F1 complex128
17 F2 S2
18 F3 uint64
19 }
20
21 type S2 struct {
22 F1 uint64
23 F2 empty
24 }
25
26 type empty struct {
27 }
28
29 //go:noinline
30 //go:registerparams
31 func callee(p0 S1) {
32 if p0 != p0exp {
33 panic("bad p0")
34 }
35 }
36
37 func main() {
38 callee(p0exp)
39 }