]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/copy.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / copy.go
index 2abf413f9519eee721fbc2be558a409aa7b945da..e6108d905d199b62398eedf0f29ab5fd004eccc8 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// Semi-exhaustive test for copy()
+// Semi-exhaustive test for the copy predeclared function.
 
 package main
 
@@ -132,6 +132,7 @@ func verify8(length, in, out, m int) {
        n := ncopied(length, in, out)
        if m != n {
                fmt.Printf("count bad(%d %d %d): %d not %d\n", length, in, out, m, n)
+               os.Exit(1)
                return
        }
        // before
@@ -172,6 +173,7 @@ func verifyS(length, in, out, m int) {
        n := ncopied(length, in, out)
        if m != n {
                fmt.Printf("count bad(%d %d %d): %d not %d\n", length, in, out, m, n)
+               os.Exit(1)
                return
        }
        // before
@@ -212,6 +214,7 @@ func verify16(length, in, out, m int) {
        n := ncopied(length, in, out)
        if m != n {
                fmt.Printf("count bad(%d %d %d): %d not %d\n", length, in, out, m, n)
+               os.Exit(1)
                return
        }
        // before
@@ -252,6 +255,7 @@ func verify32(length, in, out, m int) {
        n := ncopied(length, in, out)
        if m != n {
                fmt.Printf("count bad(%d %d %d): %d not %d\n", length, in, out, m, n)
+               os.Exit(1)
                return
        }
        // before
@@ -292,6 +296,7 @@ func verify64(length, in, out, m int) {
        n := ncopied(length, in, out)
        if m != n {
                fmt.Printf("count bad(%d %d %d): %d not %d\n", length, in, out, m, n)
+               os.Exit(1)
                return
        }
        // before