go fuzz_trailing_zero_field 源码

  • 2022-07-15
  • 浏览 (938)

golang fuzz_trailing_zero_field 代码

文件路径:/test/abi/fuzz_trailing_zero_field.go

// run

// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

var p0exp = S1{
	F1: complex(float64(2.3640607624715027), float64(-0.2717825524109192)),
	F2: S2{F1: 9},
	F3: 103050709,
}

type S1 struct {
	F1 complex128
	F2 S2
	F3 uint64
}

type S2 struct {
	F1 uint64
	F2 empty
}

type empty struct {
}

//go:noinline
//go:registerparams
func callee(p0 S1) {
	if p0 != p0exp {
		panic("bad p0")
	}
}

func main() {
	callee(p0exp)
}

相关信息

go 源码目录

相关文章

go bad_internal_offsets 源码

go bad_select_crash 源码

go convF_criteria 源码

go convT64_criteria 源码

go defer_aggregate 源码

go defer_recover_results 源码

go double_nested_addressed_struct 源码

go double_nested_struct 源码

go f_ret_z_not 源码

go fibish 源码

0  赞