summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug154.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug154.go')
-rw-r--r--test/fixedbugs/bug154.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/fixedbugs/bug154.go b/test/fixedbugs/bug154.go
index 66f7212b5..4371cc5ce 100644
--- a/test/fixedbugs/bug154.go
+++ b/test/fixedbugs/bug154.go
@@ -17,6 +17,7 @@ func f0() string {
func f1() string {
const f = 3.141592;
x := float64(float32(f)); // appears to change the precision of f
+ _ = x;
return fmt.Sprintf("%v", float64(f));
}