]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/float_lit3.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / float_lit3.go
index 850d02c9c7f97366ae3d5db35ec9e78b5417290e..37a1289fb9dd21a22e1b10961e8e94d815e9cbb4 100644 (file)
@@ -29,19 +29,19 @@ const (
 var x = []interface{}{
        float32(max32 + ulp32/2 - 1),             // ok
        float32(max32 + ulp32/2 - two128/two256), // ok
-       float32(max32 + ulp32/2),                 // ERROR "constant 3\.40282e\+38 overflows float32"
+       float32(max32 + ulp32/2),                 // ERROR "constant 3\.40282e\+38 overflows float32|cannot convert.*to type float32"
 
        float32(-max32 - ulp32/2 + 1),             // ok
        float32(-max32 - ulp32/2 + two128/two256), // ok
-       float32(-max32 - ulp32/2),                 // ERROR "constant -3\.40282e\+38 overflows float32"
+       float32(-max32 - ulp32/2),                 // ERROR "constant -3\.40282e\+38 overflows float32|cannot convert.*to type float32"
 
        // If the compiler's internal floating point representation
        // is shorter than 1024 bits, it cannot distinguish max64+ulp64/2-1 and max64+ulp64/2.
        float64(max64 + ulp64/2 - two1024/two256), // ok
        float64(max64 + ulp64/2 - 1),              // ok
-       float64(max64 + ulp64/2),                  // ERROR "constant 1\.79769e\+308 overflows float64"
+       float64(max64 + ulp64/2),                  // ERROR "constant 1\.79769e\+308 overflows float64|cannot convert.*to type float64"
 
        float64(-max64 - ulp64/2 + two1024/two256), // ok
        float64(-max64 - ulp64/2 + 1),              // ok
-       float64(-max64 - ulp64/2),                  // ERROR "constant -1\.79769e\+308 overflows float64"
+       float64(-max64 - ulp64/2),                  // ERROR "constant -1\.79769e\+308 overflows float64|cannot convert.*to type float64"
 }