OSDN Git Service

Merge branch 'trunk' of git://gcc.gnu.org/git/gcc into rework
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / go.test / test / fixedbugs / bug109.go
1 // $G $D/$F.go || echo BUG: should compile
2
3 // Copyright 2009 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 package main
8 func f(a float) float {
9         e := 1.0;
10         e = e * a;
11         return e;
12 }
13
14 /*
15 6g bugs/bug109.go
16 bugs/bug109.go:5: illegal types for operand: MUL
17         (<float64>FLOAT64)
18         (<float32>FLOAT32)
19 bugs/bug109.go:5: illegal types for operand: AS
20         (<float64>FLOAT64)
21 bugs/bug109.go:6: illegal types for operand: RETURN
22         (<float32>FLOAT32)
23         (<float64>FLOAT64)
24 */