test/fixedbugs/issue44330.dir/b.go
raw| 1 | // Copyright 2021 The Go Authors. All rights reserved. Use of this |
| 2 | // source code is governed by a BSD-style license that can be found in |
| 3 | // the LICENSE file. |
| 4 | |
| 5 | package main |
| 6 | |
| 7 | import ( |
| 8 | "./a" |
| 9 | ) |
| 10 | |
| 11 | type Term struct { |
| 12 | top *a.Table |
| 13 | } |
| 14 | |
| 15 | //go:noinline |
| 16 | func NewFred() *Term { |
| 17 | table := a.NewTable() |
| 18 | return &Term{top: table} |
| 19 | } |
| 20 | |
| 21 | func main() { |
| 22 | NewFred() |
| 23 | } |