From 295b026b18f347283f7afe22e74e23496a09f3c0 Mon Sep 17 00:00:00 2001 From: griesemer Date: Thu, 31 Aug 2017 11:39:17 +0200 Subject: [PATCH] go/types: add +build ignore to file generated by hilbert test 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 --- src/go/types/hilbert_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/go/types/hilbert_test.go b/src/go/types/hilbert_test.go index 916d6fdba2..41d1a2a7dc 100644 --- a/src/go/types/hilbert_test.go +++ b/src/go/types/hilbert_test.go @@ -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