aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-03-01 18:41:15 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-03-01 18:41:15 +0000
commitc85ac396f106116a20463313a2c4646a7de61433 (patch)
tree9df3c3fd12fad85776c5027f9686190ab2d070a0
parentc7f0c9f34f82df40f1bff7662e64c9d5342b3585 (diff)
downloadgcc-c85ac396f106116a20463313a2c4646a7de61433.zip
gcc-c85ac396f106116a20463313a2c4646a7de61433.tar.gz
gcc-c85ac396f106116a20463313a2c4646a7de61433.tar.bz2
cmd/go: add testdata/timeoutbench_test.go
This file was accidentally omitted from the update to the final Go 1.8. From-SVN: r245814
-rw-r--r--libgo/go/cmd/go/testdata/timeoutbench_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/testdata/timeoutbench_test.go b/libgo/go/cmd/go/testdata/timeoutbench_test.go
new file mode 100644
index 0000000..57a8888
--- /dev/null
+++ b/libgo/go/cmd/go/testdata/timeoutbench_test.go
@@ -0,0 +1,10 @@
+package timeoutbench_test
+
+import (
+ "testing"
+ "time"
+)
+
+func BenchmarkSleep1s(b *testing.B) {
+ time.Sleep(1 * time.Second)
+}