2020-10-22 23:37:19 +00:00
|
|
|
// run
|
|
|
|
|
|
|
|
// Copyright 2020 The Go Authors. All rights reserved. Use of this
|
|
|
|
// source code is governed by a BSD-style license that can be found in
|
|
|
|
// the LICENSE file.
|
|
|
|
|
2022-09-01 23:31:04 +00:00
|
|
|
//go:build cgo
|
2022-08-07 17:14:43 +00:00
|
|
|
|
2020-10-22 23:37:19 +00:00
|
|
|
package main
|
|
|
|
|
2022-08-07 17:14:43 +00:00
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"runtime/cgo"
|
|
|
|
)
|
2020-10-22 23:37:19 +00:00
|
|
|
|
|
|
|
type NIH struct {
|
2022-08-07 17:14:43 +00:00
|
|
|
_ cgo.Incomplete
|
2020-10-22 23:37:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var x, y NIH
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
if reflect.DeepEqual(&x, &y) != true {
|
|
|
|
panic("should report true")
|
|
|
|
}
|
|
|
|
}
|