Imported Upstream version 4.7.2
[platform/upstream/gcc48.git] / gcc / testsuite / go.test / test / fixedbugs / bug367.dir / main.go
1 package main
2
3 import (
4         "./p"
5 )
6
7 type T struct{ *p.S }
8 type I interface {
9         get()
10 }
11
12 func main() {
13         var t T
14         p.F(t)
15         var x interface{} = t
16         _, ok := x.(I)
17         if ok {
18                 panic("should not satisfy main.I")
19         }
20         _, ok = x.(p.I)
21         if !ok {
22                 panic("should satisfy p.I")
23         }
24 }