mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 08:40:55 +00:00 
			
		
		
		
	convert tests; nothing interesting.
R=r OCL=23012 CL=23014
This commit is contained in:
		
							parent
							
								
									9f4a27cbe6
								
							
						
					
					
						commit
						f48cbfdf56
					
				
					 82 changed files with 292 additions and 296 deletions
				
			
		|  | @ -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() { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Russ Cox
						Russ Cox