Peter Collingbourne | ad9841e | 2014-11-27 00:06:42 +0000 | [diff] [blame] | 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 | } |