]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: Move divconst_test out of test/bench/go1
authorDavid Chase <drchase@google.com>
Fri, 29 Apr 2016 15:15:16 +0000 (11:15 -0400)
committerDavid Chase <drchase@google.com>
Fri, 29 Apr 2016 16:20:18 +0000 (16:20 +0000)
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 <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/test/README [new file with mode: 0644]
src/cmd/compile/internal/test/divconst_test.go [moved from test/bench/go1/divconst_test.go with 98% similarity]
src/cmd/compile/internal/test/test.go [new file with mode: 0644]

diff --git a/src/cmd/compile/internal/test/README b/src/cmd/compile/internal/test/README
new file mode 100644 (file)
index 0000000..242ff79
--- /dev/null
@@ -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.
similarity index 98%
rename from test/bench/go1/divconst_test.go
rename to src/cmd/compile/internal/test/divconst_test.go
index 3cf6c2609489b5ca5c5df360383578823522210d..f585a5b51f8473d8d296aa371a3bd77c2ed1ac84 100644 (file)
@@ -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 (file)
index 0000000..56e5404
--- /dev/null
@@ -0,0 +1 @@
+package test