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 9package main 10 11import ( 12 "reflect" 13 "runtime/cgo" 14) 15 16type NIH struct { 17 _ cgo.Incomplete 18} 19 20var x, y NIH 21 22func main() { 23 if reflect.DeepEqual(&x, &y) != true { 24 panic("should report true") 25 } 26} 27