Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for PInt4 (0.04 sec)

  1. test/convert4.go

    	)
    
    	// Test with named types
    	type Slice []int
    	type Int4 [4]int
    	type PInt4 *[4]int
    	ii := make(Slice, 4)
    	if p := (*Int4)(ii); &p[0] != &ii[0] {
    		panic("*Int4 conversion failed")
    	}
    	if p := PInt4(ii); &p[0] != &ii[0] {
    		panic("PInt4 conversion failed")
    	}
    }
    
    // test static variable conversion
    
    var (
    	ss  = make([]string, 10)
    	s5  = (*[5]string)(ss)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 19 18:58:26 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top