Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAlignment (0.25 sec)

  1. src/reflect/all_test.go

    		t.Error("mismatched offsets in structure alignment:", f.Offset, offs)
    	}
    }
    
    // Check that structure alignment & offsets viewed through reflect agree with those
    // from the compiler itself.
    func TestAlignment(t *testing.T) {
    	type T1inner struct {
    		a int
    	}
    	type T1 struct {
    		T1inner
    		f int
    	}
    	type T2inner struct {
    		a, b int
    	}
    	type T2 struct {
    		T2inner
    		f int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top