Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / go.test / test / fixedbugs / bug006.go
blobe7694f95b564d07add36fce1243ec866351012e8
1 // $G $D/$F.go && $L $F.$A && ./$A.out
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.
7 package main
9 import "os"
11 const (
12 x float = iota;
13 g float = 4.5 * iota;
16 func main() {
17 if g == 0.0 { print("zero\n");}
18 if g != 4.5 { print(" fail\n"); os.Exit(1); }