Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestAlignofNaclSlice (0.16 sec)

  1. src/cmd/compile/internal/types2/sizes_test.go

    	}
    	sizes = types2.StdSizes{WordSize: 8, MaxAlign: 8}
    	if got := sizes.Sizeof(ts); got != 40 {
    		t.Errorf("Sizeof(%v) with WordSize 8 = %d want 40", ts, got)
    	}
    }
    
    // go.dev/issue/16464
    func TestAlignofNaclSlice(t *testing.T) {
    	const src = `
    package main
    
    var s struct {
    	x *int
    	y []byte
    }
    `
    	ts := findStructType(t, src)
    	sizes := &types2.StdSizes{WordSize: 4, MaxAlign: 8}
    	var fields []*types2.Var
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. src/go/types/sizes_test.go

    	}
    	sizes = types.StdSizes{WordSize: 8, MaxAlign: 8}
    	if got := sizes.Sizeof(ts); got != 40 {
    		t.Errorf("Sizeof(%v) with WordSize 8 = %d want 40", ts, got)
    	}
    }
    
    // go.dev/issue/16464
    func TestAlignofNaclSlice(t *testing.T) {
    	const src = `
    package main
    
    var s struct {
    	x *int
    	y []byte
    }
    `
    	ts := findStructType(t, src)
    	sizes := &types.StdSizes{WordSize: 4, MaxAlign: 8}
    	var fields []*types.Var
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top