2 // errorcheck -0 -live -wb=0
4 // Copyright 2014 The Go Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style
6 // license that can be found in the LICENSE file.
8 // liveness tests with inlining ENABLED
13 // issue 8142: lost 'addrtaken' bit on inlined variables.
14 // no inlining in this test, so just checking that non-inlined works.
24 ret.m = make(map[int]int) // ERROR "live at call to makemap: &ret"
29 t := newT40() // ERROR "live at call to makemap: autotmp_.* ret"
30 printnl() // ERROR "live at call to printnl: autotmp_.* ret"
36 ret.m = make(map[int]int) // ERROR "live at call to makemap: autotmp_.* ret"
38 printnl() // ERROR "live at call to printnl: autotmp_.* ret"