]> Cypherpunks repositories - gostls13.git/commitdiff
test/fixedbugs/bug295.go: fix test in anticipation of future gc fix
authorRobert Griesemer <gri@golang.org>
Fri, 20 Sep 2013 16:40:56 +0000 (09:40 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 20 Sep 2013 16:40:56 +0000 (09:40 -0700)
See also issue 6428.

R=r, rsc
CC=golang-dev
https://golang.org/cl/13794043

test/fixedbugs/bug295.go

index e2e5206ca1421501146ec3b61b09b51f21267aaa..63a12a3a741883b320c00887896bc21aa360cdc4 100644 (file)
@@ -6,7 +6,9 @@
 
 package main
 
-import . "testing"  // defines top-level T
+import . "testing"  // defines file-level T
+
+type _ B // make use of package "testing" (but don't refer to T)
 
 type S struct {
        T int