mirror of
https://github.com/golang/go
synced 2024-11-22 21:20:03 -07:00
fc184ef887
SVN=121561
22 lines
519 B
Go
22 lines
519 B
Go
// 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.
|
|
|
|
// $G $D/$F.go || echo BUG: compilation should succeed
|
|
|
|
// 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
|
|
func g (x int) float {}
|
|
|
|
func h (x int) (u int, v int) ; // BUG this doesn't
|
|
func h (x int) (u int, v int) {}
|