github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/type35.gno (about)

     1  package main
     2  
     3  type IntPtr *int
     4  
     5  func main() {
     6  	var a, b int
     7  	a = 1 // Set a to 104
     8  	s := []IntPtr{}
     9  	s = append(s, &a)
    10  	s = append(s, &b)
    11  	println(*s[0])
    12  }
    13  
    14  // Output:
    15  // 1