Home | History | Annotate | Download | only in test

Lines Matching defs:val

21 func (s S) val() int   { return 1 }
22 func (s *S1) val() int { return 2 }
23 func (i I) val() int { return 3 }
24 func (i *I1) val() int { return 4 }
25 func (t T) val() int { return 7 }
26 func (t *T1) val() int { return 8 }
28 type Val interface {
29 val() int
32 func val(v Val) int { return v.val() }
41 var v Val
43 if s.val() != 1 {
44 println("s.val:", s.val())
47 if S.val(s) != 1 {
48 println("S.val(s):", S.val(s))
51 if (*S).val(&s) != 1 {
52 println("(*S).val(s):", (*S).val(&s))
55 if ps.val() != 2 {
56 println("ps.val:", ps.val())
59 if (*S1).val(ps) != 2 {
60 println("(*S1).val(ps):", (*S1).val(ps))
63 if i.val() != 3 {
64 println("i.val:", i.val())
67 if I.val(i) != 3 {
68 println("I.val(i):", I.val(i))
71 if (*I).val(&i) != 3 {
72 println("(*I).val(&i):", (*I).val(&i))
75 if pi.val() != 4 {
76 println("pi.val:", pi.val())
79 if (*I1).val(pi) != 4 {
80 println("(*I1).val(pi):", (*I1).val(pi))
83 if t.val() != 7 {
84 println("t.val:", t.val())
87 if pt.val() != 8 {
88 println("pt.val:", pt.val())
91 if (*T1).val(pt) != 8 {
92 println("(*T1).val(pt):", (*T1).val(pt))
96 if val(s) != 1 {
97 println("val(s):", val(s))
100 if val(ps) != 2 {
101 println("val(ps):", val(ps))
104 if val(i) != 3 {
105 println("val(i):", val(i))
108 if val(pi) != 4 {
109 println("val(pi):", val(pi))
112 if val(t) != 7 {
113 println("val(t):", val(t))
116 if val(pt) != 8 {
117 println("val(pt):", val(pt))
121 if Val.val(i) != 3 {
122 println("Val.val(i):", Val.val(i))
126 if Val.val(v) != 3 {
127 println("Val.val(v):", Val.val(v))
137 var zv struct{ Val }
139 if zs.val() != 1 {
140 println("zs.val:", zs.val())
143 if zps.val() != 2 {
144 println("zps.val:", zps.val())
147 if zi.val() != 3 {
148 println("zi.val:", zi.val())
151 if zpi.val() != 4 {
152 println("zpi.val:", zpi.val())
155 if zt.val() != 7 {
156 println("zt.val:", zt.val())
159 if zpt.val() != 8 {
160 println("zpt.val:", zpt.val())
164 if val(zs) != 1 {
165 println("val(zs):", val(zs))
168 if val(zps) != 2 {
169 println("val(zps):", val(zps))
172 if val(zi) != 3 {
173 println("val(zi):", val(zi))
176 if val(zpi) != 4 {
177 println("val(zpi):", val(zpi))
180 if val(zt) != 7 {
181 println("val(zt):", val(zt))
184 if val(zpt) != 8 {
185 println("val(zpt):", val(zpt))
189 zv.Val = zi
190 if zv.val() != 3 {
191 println("zv.val():", zv.val())
195 if (&zs).val() != 1 {
196 println("(&zs).val:", (&zs).val())
199 if (&zps).val() != 2 {
200 println("(&zps).val:", (&zps).val())
203 if (&zi).val() != 3 {
204 println("(&zi).val:", (&zi).val())
207 if (&zpi).val() != 4 {
208 println("(&zpi).val:", (&zpi).val())
211 if (&zt).val() != 7 {
212 println("(&zt).val:", (&zt).val())
215 if (&zpt).val() != 8 {
216 println("(&zpt).val:", (&zpt).val())
220 if val(&zs) != 1 {
221 println("val(&zs):", val(&zs))
224 if val(&zps) != 2 {
225 println("val(&zps):", val(&zps))
228 if val(&zi) != 3 {
229 println("val(&zi):", val(&zi))
232 if val(&zpi) != 4 {
233 println("val(&zpi):", val(&zpi))
236 if val(&zt) != 7 {
237 println("val(&zt):", val(&zt))
240 if val(&zpt) != 8 {
241 println("val(&zpt):", val(&zpt))
245 zv.Val = &zi
246 if zv.val() != 3 {
247 println("zv.val():", zv.val())