summaryrefslogtreecommitdiffstats
path: root/llgo/test/execution/conversions/sameunderlying.go
blob: 8208cfba116aaf2828570a7d6cbdb3947aa3d97c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: llgo -o %t %s
// RUN: %t 2>&1 | count 0

package main

type X struct{}
type Y X

func main() {
	var x X
	px := &x
	py := (*Y)(&x)
	py = (*Y)(px)
	_ = py
}
OpenPOWER on IntegriCloud