Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/encoding/gob/codec_test.go

    	A int
    	B int
    	C int
    	D int
    }
    type T1 struct {
    	A int
    	B *int
    	C **int
    	D ***int
    }
    type T2 struct {
    	A ***int
    	B **int
    	C *int
    	D int
    }
    
    func TestAutoIndirection(t *testing.T) {
    	// First transfer t1 into t0
    	var t1 T1
    	t1.A = 17
    	t1.B = new(int)
    	*t1.B = 177
    	t1.C = new(*int)
    	*t1.C = new(int)
    	**t1.C = 1777
    	t1.D = new(**int)
    	*t1.D = new(*int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
Back to top