]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/const2.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / const2.go
index d104a2fa7194169cac41bc712cdafd34e08c7d2e..f0de37be15ecab9c472e034a774be8100391eb70 100644 (file)
@@ -11,7 +11,7 @@ package main
 
 const (
        A int = 1
-       B byte; // ERROR "type without expr|expected .=."
+       B byte; // ERROR "type without expr|expected .=.|missing init expr"
 )
 
 const LargeA = 1000000000000000000
@@ -23,7 +23,7 @@ const AlsoLargeA = LargeA << 400 << 400 >> 400 >> 400 // GC_ERROR "constant shif
 // Issue #42732.
 
 const a = 1e+500000000
-const b = a * a // ERROR "constant multiplication overflow"
+const b = a * a // ERROR "constant multiplication overflow|not representable"
 const c = b * b
 
 const MaxInt512 = (1<<256 - 1) * (1<<256 + 1)