Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for zero1_ssa (0.13 sec)

  1. src/cmd/compile/internal/test/testdata/zero_test.go

    import "testing"
    
    type Z1 struct {
    	pre  [8]byte
    	mid  [1]byte
    	post [8]byte
    }
    
    //go:noinline
    func zero1_ssa(x *[1]byte) {
    	*x = [1]byte{}
    }
    func testZero1(t *testing.T) {
    	a := Z1{[8]byte{255, 255, 255, 255, 255, 255, 255, 255}, [1]byte{255}, [8]byte{255, 255, 255, 255, 255, 255, 255, 255}}
    	zero1_ssa(&a.mid)
    	want := Z1{[8]byte{255, 255, 255, 255, 255, 255, 255, 255}, [1]byte{0}, [8]byte{255, 255, 255, 255, 255, 255, 255, 255}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 49.6K bytes
    - Viewed (0)
Back to top