]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgo/misc/cgo/testplugin/testdata/issue18584/plugin.go
function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P before testing...
[thirdparty/gcc.git] / libgo / misc / cgo / testplugin / testdata / issue18584 / plugin.go
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 main
6
7 import "reflect"
8
9 type C struct {
10 }
11
12 func F(c *C) *C {
13 return nil
14 }
15
16 func G() bool {
17 var c *C
18 return reflect.TypeOf(F).Out(0) == reflect.TypeOf(c)
19 }