| // Copyright 2019 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. |
| // This test makes sure that -m=2's escape analysis diagnostics don't |
| // go into an infinite loop when handling negative dereference |
| // cycles. The critical thing being tested here is that compilation |
| // succeeds ("errorcheck -0"), not any particular diagnostic output, |
| // hence the very lax ERROR patterns below. |
| var n1, n2 Node // ERROR "." |
| var n1, n2 Node // ERROR "." |