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.
13 // no inlining in this test, so just checking that non-inlined works.
26 ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
31 t := newT40() // ERROR "live at call to makemap: .autotmp_[0-9]+ ret$"
32 printnl() // ERROR "live at call to printnl: .autotmp_[0-9]+ ret$"
33 useT40(t) // ERROR "live at call to useT40: .autotmp_[0-9]+ ret$"
38 ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: .autotmp_[0-9]+ ret$"
40 printnl() // ERROR "live at call to printnl: .autotmp_[0-9]+ ret$"
41 useT40(t) // ERROR "live at call to useT40: .autotmp_[0-9]+ ret$"