commit | ad9841e8ac74bfcb1814b728a143408e87dd00a7 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Thu Nov 27 00:06:42 2014 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Thu Nov 27 00:06:42 2014 +0000 |
tree | a36b962fece0b5b9676f26c1af90b43388069284 | |
parent | 5468e86469f716eb40b1b39dfd9fd92e4f35df9e [diff] [blame] |
Initial commit of llgo. llvm-svn: 222857
diff --git a/llgo/test/execution/conversions/sameunderlying.go b/llgo/test/execution/conversions/sameunderlying.go new file mode 100644 index 0000000..8208cfb --- /dev/null +++ b/llgo/test/execution/conversions/sameunderlying.go
@@ -0,0 +1,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 +}