Home | History | Annotate | Download | only in fixedbugs
      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 
     11 package main
     12 
     13 import "testing"
     14 
     15 type I interface {
     16 	testing.TB
     17 	Parallel()
     18 }
     19 
     20 func F(i I) {
     21 	i.Log("F")
     22 }
     23 
     24 var t testing.T
     25 
     26 func main() {
     27 	F(&t)
     28 }
     29