github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/test/execution/conversions/sameunderlying.go (about) 1 // RUN: llgo -o %t %s 2 // RUN: %t 2>&1 | count 0 3 4 package main 5 6 type X struct{} 7 type Y X 8 9 func main() { 10 var x X 11 px := &x 12 py := (*Y)(&x) 13 py = (*Y)(px) 14 _ = py 15 }