| 
									
										
										
										
											2008-06-06 17:35:08 -07:00
										 |  |  | // Copyright 2009 The Go Authors.  All rights reserved. | 
					
						
							|  |  |  | // Use of this source code is governed by a BSD-style | 
					
						
							|  |  |  | // license that can be found in the LICENSE file. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-07-07 10:03:10 -07:00
										 |  |  | // $G $D/$F.go && $L $F.$A && ./$A.out | 
					
						
							| 
									
										
										
										
											2008-06-06 17:35:08 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | // Forward declarations | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package main | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func f (x int) ;  // this works | 
					
						
							|  |  |  | func f (x int) {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func i (x, y int) ;  // this works | 
					
						
							|  |  |  | func i (x, y int) {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func g (x int) float ;  // BUG this doesn't | 
					
						
							| 
									
										
										
										
											2008-07-07 10:03:10 -07:00
										 |  |  | func g (x int) float { return 0.0 } | 
					
						
							| 
									
										
										
										
											2008-06-06 17:35:08 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | func h (x int) (u int, v int) ;  // BUG this doesn't | 
					
						
							|  |  |  | func h (x int) (u int, v int) {} | 
					
						
							| 
									
										
										
										
											2008-07-07 10:03:10 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | func main() {} |