gcc/testsuite/go.test/test/fixedbugs/issue33013.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 | type ServiceDesc struct { |
| 11 | X int |
| 12 | uc |
| 13 | } |
| 14 | |
| 15 | type uc interface { |
| 16 | f() a.G |
| 17 | } |
| 18 | |
| 19 | var q int |
| 20 | |
| 21 | func RS(svcd *ServiceDesc, server interface{}, qq uint8) *Service { |
| 22 | defer func() { q += int(qq) }() |
| 23 | return nil |
| 24 | } |