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

@ -9,15 +9,15 @@
package main
type I interface { M() int64 }
export type I interface { M() int64 }
type BigPtr struct { a, b, c, d int64 }
export type BigPtr struct { a, b, c, d int64 }
func (z *BigPtr) M() int64 { return z.a+z.b+z.c+z.d }
type SmallPtr struct { a int32 }
export type SmallPtr struct { a int32 }
func (z *SmallPtr) M() int64 { return int64(z.a) }
type IntPtr int32
export type IntPtr int32
func (z *IntPtr) M() int64 { return int64(*z) }
var bad bool
@ -43,13 +43,13 @@ func ptrs() {
test("&intptr", &intptr);
}
type Big struct { a, b, c, d int64 }
export type Big struct { a, b, c, d int64 }
func (z Big) M() int64 { return z.a+z.b+z.c+z.d }
type Small struct { a int32 }
export type Small struct { a int32 }
func (z Small) M() int64 { return int64(z.a) }
type Int int32
export type Int int32
func (z Int) M() int64 { return int64(z) }
func nonptrs() {