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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [go/] [doc/] [testdata/] [e.1.golden] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// The package e is a go/doc test for embedded methods.
2
PACKAGE e
3
 
4
IMPORTPATH
5
        testdata/e
6
 
7
FILENAMES
8
        testdata/e.go
9
 
10
TYPES
11
        // T1 has no embedded (level 1) M method due to conflict.
12
        type T1 struct {
13
                t1
14
                t2
15
        }
16
 
17
        // T2 has only M as top-level method.
18
        type T2 struct {
19
                t1
20
        }
21
 
22
        // T2.M should appear as method of T2.
23
        func (T2) M()
24
 
25
        // T3 has only M as top-level method.
26
        type T3 struct {
27
                t1e
28
                t2e
29
        }
30
 
31
        // T3.M should appear as method of T3.
32
        func (T3) M()
33
 
34
        //
35
        type T4 struct{}
36
 
37
        // T4.M should appear as method of T5 only if AllMethods is set.
38
        func (*T4) M()
39
 
40
        //
41
        type T5 struct {
42
                T4
43
        }
44
 
45
        //
46
        type t1 struct{}
47
 
48
        // t1.M should not appear as method in a Tx type.
49
        func (t1) M()
50
 
51
        //
52
        type t1e struct {
53
                t1
54
        }
55
 
56
        // t1.M should not appear as method in a Tx type.
57
        func (t1e) M()
58
 
59
        //
60
        type t2 struct{}
61
 
62
        // t2.M should not appear as method in a Tx type.
63
        func (t2) M()
64
 
65
        //
66
        type t2e struct {
67
                t2
68
        }
69
 
70
        // t2.M should not appear as method in a Tx type.
71
        func (t2e) M()
72
 

powered by: WebSVN 2.1.0

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