blob: 8208cfba116aaf2828570a7d6cbdb3947aa3d97c [file] [log] [blame]
Peter Collingbournead9841e2014-11-27 00:06:42 +00001// RUN: llgo -o %t %s
2// RUN: %t 2>&1 | count 0
3
4package main
5
6type X struct{}
7type Y X
8
9func main() {
10 var x X
11 px := &x
12 py := (*Y)(&x)
13 py = (*Y)(px)
14 _ = py
15}