]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: add +build ignore to file generated by hilbert test
authorgriesemer <gri@golang.org>
Thu, 31 Aug 2017 09:39:17 +0000 (11:39 +0200)
committerRobert Griesemer <gri@golang.org>
Thu, 31 Aug 2017 11:02:45 +0000 (11:02 +0000)
This makes sure that the go/types package still builds even if
the hilbert test generated its test file in the go/types package
(when run as: go test -run Hilbert -out=h.go).

Change-Id: I60ecbaaa1537de14cfa95e2e6fc8ebedff651baf
Reviewed-on: https://go-review.googlesource.com/60531
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
src/go/types/hilbert_test.go

index 916d6fdba267c8bb6cb1636326f712575c53db1f..41d1a2a7dc6ad5cdceda826652decaeb8ab403f7 100644 (file)
@@ -52,6 +52,8 @@ func program(n int, out string) []byte {
 
        g.p(`// Code generated by: go test -run=Hilbert -H=%d -out=%q. DO NOT EDIT.
 
+// +build ignore
+
 // This program tests arbitrary precision constant arithmetic
 // by generating the constant elements of a Hilbert matrix H,
 // its inverse I, and the product P = H*I. The product should