1 // Copyright 2019 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package issue30768_test 6 7 import ( 8 "testing" 9 10 "testshared/issue30768/issue30768lib" 11 ) 12 13 type s struct { 14 s issue30768lib.S 15 } 16 17 func Test30768(t *testing.T) { 18 // Calling t.Log will convert S to an empty interface, 19 // which will force a reference to the generated hash function, 20 // defined in the shared library. 21 t.Log(s{}) 22 } 23