summaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/generate/test2.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/generate/test2.go')
-rw-r--r--src/cmd/go/testdata/generate/test2.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/generate/test2.go b/src/cmd/go/testdata/generate/test2.go
new file mode 100644
index 000000000..ef1a3d951
--- /dev/null
+++ b/src/cmd/go/testdata/generate/test2.go
@@ -0,0 +1,10 @@
+// Copyright 2014 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Test that go generate handles command aliases.
+
+//go:generate -command run echo Now is the time
+//go:generate run for all good men
+
+package p