From: David Chase Date: Fri, 29 Apr 2016 15:15:16 +0000 (-0400) Subject: cmd/compile: Move divconst_test out of test/bench/go1 X-Git-Tag: go1.7beta1~406 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d8d33514f9e8c80d504ab4a61ef96621afc3647d;p=gostls13.git cmd/compile: Move divconst_test out of test/bench/go1 This is necessary to avoid disrupting the go1 suite and gives us a place to put other tests of basic compiler function and correctness. Change-Id: I36933819ff2bfe6a2121fff2be9a98efd2123d9a Reviewed-on: https://go-review.googlesource.com/22597 Run-TryBot: David Chase TryBot-Result: Gobot Gobot Reviewed-by: Keith Randall --- diff --git a/src/cmd/compile/internal/test/README b/src/cmd/compile/internal/test/README new file mode 100644 index 0000000000..242ff794cb --- /dev/null +++ b/src/cmd/compile/internal/test/README @@ -0,0 +1,4 @@ +This directory holds small tests and benchmarks of code +generated by the compiler. This code is not for importing, +and the tests are intended to verify that specific optimzations +are applied and correct. diff --git a/test/bench/go1/divconst_test.go b/src/cmd/compile/internal/test/divconst_test.go similarity index 98% rename from test/bench/go1/divconst_test.go rename to src/cmd/compile/internal/test/divconst_test.go index 3cf6c26094..f585a5b51f 100644 --- a/test/bench/go1/divconst_test.go +++ b/src/cmd/compile/internal/test/divconst_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package go1 +package test import ( "testing" diff --git a/src/cmd/compile/internal/test/test.go b/src/cmd/compile/internal/test/test.go new file mode 100644 index 0000000000..56e5404079 --- /dev/null +++ b/src/cmd/compile/internal/test/test.go @@ -0,0 +1 @@ +package test