Debian Codegraph @

gcc/testsuite/go.test/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 package main
8
9 import "reflect"
10
11 //go:notinheap
12 type NIH struct {
13 }
14
15 var x, y NIH
16
17 func main() {
18 if reflect.DeepEqual(&x, &y) != true {
19 panic("should report true")
20 }
21 }