1
0
mirror of https://github.com/golang/go synced 2024-11-14 08:10:22 -07:00
go/test/fixedbugs/bug043.go
Rob Pike bf14ef61fc test cleanup
SVN=126120
2008-07-07 10:03:10 -07:00

24 lines
531 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 && $L $F.$A && ./$A.out
// 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 { return 0.0 }
func h (x int) (u int, v int) ; // BUG this doesn't
func h (x int) (u int, v int) {}
func main() {}