aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug297.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug297.go')
-rw-r--r--test/fixedbugs/bug297.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/fixedbugs/bug297.go b/test/fixedbugs/bug297.go
index c2bd253d05..70eb4ca9b2 100644
--- a/test/fixedbugs/bug297.go
+++ b/test/fixedbugs/bug297.go
@@ -1,4 +1,4 @@
-// errorcheck
+// errorcheck -d=panic
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
@@ -9,7 +9,8 @@
package main
type ByteSize float64
+
const (
- _ = iota; // ignore first value by assigning to blank identifier
- KB ByteSize = 1<<(10*X) // ERROR "undefined"
+ _ = iota // ignore first value by assigning to blank identifier
+ KB ByteSize = 1 << (10 * X) // ERROR "undefined"
)