mirror of
https://github.com/golang/go
synced 2024-11-15 03:20:31 -07:00
37b194a422
These functions are compiler generated, and as such are only available in the internal ABI. Doing this avoids generating an alias symbol. Doing that avoids confusion between unmangled and mangled type symbols. Fixes #30768 Change-Id: I197a5ba6403aac11989ffa951dbe35bd0506de91 Reviewed-on: https://go-review.googlesource.com/c/go/+/186077 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
23 lines
487 B
Go
23 lines
487 B
Go
// Copyright 2019 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.
|
|
|
|
package issue30768_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"testshared/issue30768/issue30768lib"
|
|
)
|
|
|
|
type s struct {
|
|
s issue30768lib.S
|
|
}
|
|
|
|
func Test30768(t *testing.T) {
|
|
// Calling t.Log will convert S to an empty interface,
|
|
// which will force a reference to the generated hash function,
|
|
// defined in the shared library.
|
|
t.Log(s{})
|
|
}
|