summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug087.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug087.go')
-rw-r--r--test/fixedbugs/bug087.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixedbugs/bug087.go b/test/fixedbugs/bug087.go
index 6b5e56516..4af8d976f 100644
--- a/test/fixedbugs/bug087.go
+++ b/test/fixedbugs/bug087.go
@@ -10,6 +10,7 @@ const s string = "foo";
func main() {
i := len(s); // should be legal to take len() of a constant
+ _ = i;
}
/*