]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/literal.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / literal.go
index 396d75c01f6ded6e55060c5367d381e70ebbe1c6..c3d6bc123a6b0c9997ac8ee3816d1ed6640cef61 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Test literal syntax for basic types.
+
 package main
 
 var nbad int
@@ -22,7 +24,6 @@ func equal(a, b float32) bool {
        return a == b
 }
 
-
 func main() {
        // bool
        var t bool = true
@@ -223,6 +224,6 @@ func main() {
        assert(sj0 == sj3, "sj3")
 
        if nbad > 0 {
-               println()
+               panic("literal failed")
        }
 }