gcc/testsuite/go.test/test/fixedbugs/issue33219.dir/b.go
raw| 1 | // Copyright 2019 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 b |
| 6 | |
| 7 | import "./a" |
| 8 | |
| 9 | type Service uint64 |
| 10 | |
| 11 | var q *Service |
| 12 | var r *Service |
| 13 | |
| 14 | type f struct{} |
| 15 | |
| 16 | var fk f |
| 17 | |
| 18 | func No(s a.A, qq uint8) *Service { |
| 19 | defer func() { q, r = r, q }() |
| 20 | return q |
| 21 | } |
| 22 | |
| 23 | func Yes(s a.A, p *uint64) a.A { |
| 24 | return a.V(s, fk, p) |
| 25 | } |