Source file
test/abi/fuzz_trailing_zero_field.go
1
2
3
4
5
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
30
31 func callee(p0 S1) {
32 if p0 != p0exp {
33 panic("bad p0")
34 }
35 }
36
37 func main() {
38 callee(p0exp)
39 }
40
View as plain text