convert tests; nothing interesting.

R=r
OCL=23012
CL=23014
This commit is contained in:
Russ Cox 2009-01-16 16:12:14 -08:00
parent 9f4a27cbe6
commit f48cbfdf56
82 changed files with 292 additions and 296 deletions

View file

@ -15,9 +15,9 @@ func check(b bool, msg string) {
}
}
type I1 interface { Get() int; Put(int); }
export type I1 interface { Get() int; Put(int); }
type S1 struct { i int }
export type S1 struct { i int }
func (p S1) Get() int { return p.i }
func (p S1) Put(i int) { p.i = i }
@ -45,7 +45,7 @@ func f3() {
check(s.i == 1, "f3 s");
}
type S2 struct { i int }
export type S2 struct { i int }
func (p *S2) Get() int { return p.i }
func (p *S2) Put(i int) { p.i = i }
@ -73,9 +73,9 @@ func f6() {
check(s.i == 2, "f6 s");
}
type I2 interface { Get() int64; Put(int64); }
export type I2 interface { Get() int64; Put(int64); }
type S3 struct { i, j, k, l int64 }
export type S3 struct { i, j, k, l int64 }
func (p S3) Get() int64 { return p.l }
func (p S3) Put(i int64) { p.l = i }
@ -103,7 +103,7 @@ func f9() {
check(s.l == 4, "f9 s");
}
type S4 struct { i, j, k, l int64 }
export type S4 struct { i, j, k, l int64 }
func (p *S4) Get() int64 { return p.l }
func (p *S4) Put(i int64) { p.l = i }