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.
23 ret.m = make(map[int]int) // ERROR "live at call to makemap: &ret"
28 t := newT40() // ERROR "live at call to makemap: ret"
29 printnl() // ERROR "live at call to printnl: ret"
35 ret.m = make(map[int]int) // ERROR "live at call to makemap: ret"
37 printnl() // ERROR "live at call to printnl: ret"