1 // errorcheck -0 -live -wb=0
3 // Copyright 2014 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 // liveness tests with inlining ENABLED
12 // issue 8142: lost 'addrtaken' bit on inlined variables.
25 ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
30 t := newT40() // ERROR "stack object ret T40$" "stack object .autotmp_[0-9]+ map.hdr\[int\]int$"
31 printnl() // ERROR "live at call to printnl: ret$"
36 ret := T40{} // ERROR "stack object ret T40$"
37 ret.m = make(map[int]int, 42) // ERROR "stack object .autotmp_[0-9]+ map.hdr\[int\]int$"
39 printnl() // ERROR "live at call to printnl: ret$"