3 // Copyright 2019 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Test escape analysis for goto statements.
19 // BAD: We should be able to recognize that there
20 // aren't any more "goto loop" after here.
21 p = new(int) // ERROR "escapes to heap"
31 p = new(int) // ERROR "does not escape"
42 p = new(int) // ERROR "does not escape"