]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/rename.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / rename.go
index e54427455380aa55a9e4fb351821a25150c50d35..83f184b74dcbd77c84948543a6b6ab60706d7834 100644 (file)
@@ -1,6 +1,6 @@
 // run
 
-// Copyright 2009 The Go Authors.  All rights reserved.
+// Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
@@ -8,7 +8,10 @@
 
 package main
 
-import "fmt"
+import (
+       "fmt"
+       "runtime"
+)
 
 func main() {
        n :=
@@ -52,6 +55,7 @@ func main() {
                        iota
        if n != NUM*(NUM-1)/2 {
                fmt.Println("BUG: wrong n", n, NUM*(NUM-1)/2)
+               runtime.Breakpoint() // panic is inaccessible
        }
 }