modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/fixedbugs/issue19261.dir/p.go (about)

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package p
     6  
     7  func F() { // ERROR "can inline F"
     8  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
     9  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    10  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    11  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    12  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    13  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    14  }
    15  
    16  func G() {
    17  	F() // ERROR "inlining call to F"
    18  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    19  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    20  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    21  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    22  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    23  	print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    24  }