Debian Codegraph @

test/fixedbugs/issue42076.go

raw
1 // run
2
3 // Copyright 2020 The Go Authors. All rights reserved. Use of this
4 // source code is governed by a BSD-style license that can be found in
5 // the LICENSE file.
6
7 //go:build cgo
8
9 package main
10
11 import (
12 "reflect"
13 "runtime/cgo"
14 )
15
16 type NIH struct {
17 _ cgo.Incomplete
18 }
19
20 var x, y NIH
21
22 func main() {
23 if reflect.DeepEqual(&x, &y) != true {
24 panic("should report true")
25 }
26 }