URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [interface/] [embed1.go] - Rev 700
Compare with Previous | Blame | View Log
// $G $D/embed0.go && $G $D/$F.go && $L $F.$A && ./$A.out// Copyright 2009 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.// Check that embedded interface types can have local methods.package mainimport "./embed0"type T intfunc (t T) m() {}type I interface { m() }type J interface { I }type PI interface { p.I }type PJ interface { p.J }func main() {var i Ivar j Jvar t Ti = tj = t_ = i_ = ji = j_ = ij = i_ = jvar pi PIvar pj PJvar pt p.Tpi = ptpj = pt_ = pi_ = pjpi = pj_ = pipj = pi_ = pj}
