| // errorcheck -0 -live -wb=0 |
| // Copyright 2014 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. |
| // liveness tests with inlining ENABLED |
| // issue 8142: lost 'addrtaken' bit on inlined variables. |
| // no inlining in this test, so just checking that non-inlined works. |
| ret.m = make(map[int]int) // ERROR "live at call to makemap: &ret" |
| t := newT40() // ERROR "live at call to makemap: autotmp_.* ret" |
| printnl() // ERROR "live at call to printnl: autotmp_.* ret" |
| ret.m = make(map[int]int) // ERROR "live at call to makemap: autotmp_.* ret" |
| printnl() // ERROR "live at call to printnl: autotmp_.* ret" |