3 // Copyright 2016 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 // Test inlining of variadic functions.
12 func head(xs ...string) string { // ERROR "can inline head" "leaking param: xs to result"
16 func f() string { // ERROR "can inline f"
17 x := head("hello", "world") // ERROR "inlining call to head" "\.\.\. argument does not escape"