3 // Copyright 2018 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 // Issue 23521: improve early DCE for if without explicit else.
16 func f() int { // ERROR "can inline f"
20 // If everything below is removed, as it should,
21 // function f should be inlineable.
28 func g() int { // ERROR "can inline g"
29 return f() // ERROR "inlining call to f"
32 func f2() int { // ERROR "can inline f2"
41 func g2() int { // ERROR "can inline g2"
42 return f2() // ERROR "inlining call to f2"