summaryrefslogtreecommitdiff
path: root/test/convlit.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2008-10-22 16:09:24 -0700
committerIan Lance Taylor <iant@golang.org>2008-10-22 16:09:24 -0700
commit458662d7f57c0a82324bea477afc2f00e3a4f558 (patch)
tree18e7c5f8a051cca5cf0842699eb39d505abad510 /test/convlit.go
parent4e38205376f70064971ef12b1a4062b4f3778eff (diff)
downloadgolang-458662d7f57c0a82324bea477afc2f00e3a4f558.tar.gz
Match gccgo error messages.
convlit.go:17: error: incompatible type in initialization convlit.go:18: error: incompatible types in binary expression convlit.go:19: error: incompatible types in binary expression convlit.go:20: error: incompatible types in binary expression convlit.go:21: error: incompatible types in binary expression convlit.go:23: error: cannot convert non-integer constant convlit.go:24: error: integer type overflow convlit.go:25: error: floating point overflow R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=17649 CL=17661
Diffstat (limited to 'test/convlit.go')
-rw-r--r--test/convlit.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/convlit.go b/test/convlit.go
index b6f3134c6..2f1b20225 100644
--- a/test/convlit.go
+++ b/test/convlit.go
@@ -17,11 +17,11 @@ var x7 = float(1e1000);
// implicit conversions merit scrutiny
var s string;
-var bad1 string = 1; // ERROR "conver"
-var bad2 = s + 1; // ERROR "conver"
-var bad3 = s + 'a'; // ERROR "conver"
-var bad4 = "a" + 1; // ERROR "literals"
-var bad5 = "a" + 'a'; // ERROR "literals"
+var bad1 string = 1; // ERROR "conver|incompatible"
+var bad2 = s + 1; // ERROR "conver|incompatible"
+var bad3 = s + 'a'; // ERROR "conver|incompatible"
+var bad4 = "a" + 1; // ERROR "literals|incompatible"
+var bad5 = "a" + 'a'; // ERROR "literals|incompatible"
var bad6 int = 1.5; // ERROR "convert"
var bad7 int = 1e100; // ERROR "overflow"