blob: 6761682b39957db29d290122a654a08aa41b1d67 [file] [log] [blame]
Russ Cox0b477ef2012-02-16 23:48:57 -05001// run
Rob Pike094ee442008-06-06 16:56:18 -07002
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
7package main
8
Russ Cox918afd942009-05-08 15:21:41 -07009import "os"
10
Rob Pike094ee442008-06-06 16:56:18 -070011const (
Russ Coxf2b5a072011-01-19 23:09:00 -050012 x float64 = iota
13 g float64 = 4.5 * iota
14)
Rob Pike094ee442008-06-06 16:56:18 -070015
Rob Pike34cb7c22008-06-27 14:15:06 -070016func main() {
Russ Coxf2b5a072011-01-19 23:09:00 -050017 if g == 0.0 {
18 print("zero\n")
19 }
20 if g != 4.5 {
21 print(" fail\n")
22 os.Exit(1)
23 }
Rob Pike094ee442008-06-06 16:56:18 -070024}