llvm-project/llgo/test/execution/conversions/sameunderlying.go

16 lines
163 B
Go

// 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
}