aboutsummaryrefslogtreecommitdiff
path: root/test/rotate.go
diff options
context:
space:
mode:
authorRémy Oudompheng <oudomphe@phare.normalesup.org>2013-01-11 22:42:55 +0100
committerRémy Oudompheng <oudomphe@phare.normalesup.org>2013-01-11 22:42:55 +0100
commit578f24d5321401b9bb8686fa5e968c8bc63b89f6 (patch)
tree5e56282d2384e4cbf421f9acfcd7005229e30e13 /test/rotate.go
parent7f0449a1086dce557c6071c951cfec8664e8d456 (diff)
downloadgo-578f24d5321401b9bb8686fa5e968c8bc63b89f6.tar.gz
go-578f24d5321401b9bb8686fa5e968c8bc63b89f6.zip
test: add rotate.go and fixedbugs/bug313
Update #4139. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7094047
Diffstat (limited to 'test/rotate.go')
-rw-r--r--test/rotate.go15
1 files changed, 5 insertions, 10 deletions
diff --git a/test/rotate.go b/test/rotate.go
index aa334b4218..1d7149702a 100644
--- a/test/rotate.go
+++ b/test/rotate.go
@@ -1,9 +1,6 @@
-// $G $D/$F.go && $L $F.$A &&
-// ./$A.out >tmp.go && $G tmp.go && $L -o $A.out1 tmp.$A && ./$A.out1
-// rm -f tmp.go $A.out1
+// skip
-// NOTE: This test is not run by 'run.go' and so not run by all.bash.
-// To run this test you must use the ./run shell script.
+// NOTE: the actual tests to run are rotate[0123].go
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
@@ -12,8 +9,8 @@
// Generate test of shift and rotate by constants.
// The output is compiled and run.
//
-// The output takes around a gigabyte of memory to compile, link, and run
-// but it is only done during ./run, not in normal builds using run.go.
+// The integer type depends on the value of mode (rotate direction,
+// signedness).
package main
@@ -37,9 +34,7 @@ func main() {
typ := fmt.Sprintf("int%d", 1<<logBits)
fmt.Fprint(b, strings.Replace(checkFunc, "XXX", typ, -1))
fmt.Fprint(b, strings.Replace(checkFunc, "XXX", "u"+typ, -1))
- for mode := 0; mode < 1<<2; mode++ {
- gentest(b, 1<<logBits, mode&1 != 0, mode&2 != 0)
- }
+ gentest(b, 1<<logBits, mode&1 != 0, mode&2 != 0)
}
}