...

Source file src/cmd/compile/internal/loopvar/testdata/inlines/a/a.go

Documentation: cmd/compile/internal/loopvar/testdata/inlines/a

     1  // Copyright 2023 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 a
     6  
     7  import "cmd/compile/internal/loopvar/testdata/inlines/b"
     8  
     9  func F() []*int {
    10  	var s []*int
    11  	for i := 0; i < 10; i++ {
    12  		s = append(s, &i)
    13  	}
    14  	return s
    15  }
    16  
    17  func Fb() []*int {
    18  	bf, _ := b.F()
    19  	return bf
    20  }
    21  

View as plain text