Debian Codegraph @

gcc/testsuite/go.test/test/fixedbugs/issue32901.dir/main.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 main
6
7 import "./c"
8 import "reflect"
9
10 func main() {
11 x := c.F()
12 p := c.P()
13 t := reflect.PtrTo(reflect.TypeOf(x))
14 tp := reflect.TypeOf(p)
15 if t != tp {
16 panic("FAIL")
17 }
18 }