OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [fixedbugs/] [bug367.dir/] [main.go] - Rev 700

Compare with Previous | Blame | View Log

package main

import (
        "./p"
)

type T struct{ *p.S }
type I interface {
        get()
}

func main() {
        var t T
        p.F(t)
        var x interface{} = t
        _, ok := x.(I)
        if ok {
                panic("should not satisfy main.I")
        }
        _, ok = x.(p.I)
        if !ok {
                panic("should satisfy p.I")
        }
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.