blob: 64451252971b15b19db82fb1b48fbf8610ae703c [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// compile
Ian Lance Taylor68660262010-09-24 17:07:42 -07002
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 Coxf2b5a072011-01-19 23:09:00 -05008// bug307.go:14:6: error: complex arguments must have identical types
Ian Lance Taylor68660262010-09-24 17:07:42 -07009
10package main
11
12func main() {
13 var f float64
Russ Coxf2b5a072011-01-19 23:09:00 -050014 _ = complex(1/f, 0)
Ian Lance Taylor68660262010-09-24 17:07:42 -070015}