Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // compile |
Ian Lance Taylor | 6866026 | 2010-09-24 17:07:42 -0700 | [diff] [blame] | 2 | |
| 3 | // Copyright 2010 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | // Valid program, gccgo reported an error. |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 8 | // bug307.go:14:6: error: complex arguments must have identical types |
Ian Lance Taylor | 6866026 | 2010-09-24 17:07:42 -0700 | [diff] [blame] | 9 | |
| 10 | package main |
| 11 | |
| 12 | func main() { |
| 13 | var f float64 |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 14 | _ = complex(1/f, 0) |
Ian Lance Taylor | 6866026 | 2010-09-24 17:07:42 -0700 | [diff] [blame] | 15 | } |