2020-10-22 17:37:19 -06: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 17:31:04 -06:00
|
|
|
//go:build cgo
|
2022-08-07 11:14:43 -06:00
|
|
|
|
2020-10-22 17:37:19 -06:00
|
|
|
package main
|
|
|
|
|
2022-08-07 11:14:43 -06:00
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
"runtime/cgo"
|
|
|
|
)
|
2020-10-22 17:37:19 -06:00
|
|
|
|
|
|
|
type NIH struct {
|
2022-08-07 11:14:43 -06:00
|
|
|
_ cgo.Incomplete
|
2020-10-22 17:37:19 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
var x, y NIH
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
if reflect.DeepEqual(&x, &y) != true {
|
|
|
|
panic("should report true")
|
|
|
|
}
|
|
|
|
}
|