1// build 2 3// Copyright 2017 The Go Authors. All rights reserved. 4// Use of this source code is governed by a BSD-style 5// license that can be found in the LICENSE file. 6 7// Linking this with gccgo got an undefined symbol reference, 8// because the private method in testing.TB led gccgo to assume that 9// the interface method table would be defined in the testing package. 10 11package main 12 13import "testing" 14 15type I interface { 16 testing.TB 17 Parallel() 18} 19 20func F(i I) { 21 i.Log("F") 22} 23 24var t testing.T 25 26func main() { 27 F(&t) 28} 29