summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/generate/test3.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/cmd/go/testdata/generate/test3.go')
-rw-r--r--libgo/go/cmd/go/testdata/generate/test3.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/testdata/generate/test3.go b/libgo/go/cmd/go/testdata/generate/test3.go
new file mode 100644
index 0000000000..41ffb7ea87
--- /dev/null
+++ b/libgo/go/cmd/go/testdata/generate/test3.go
@@ -0,0 +1,9 @@
+// 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 go generate variable substitution.
+
+//go:generate echo $GOARCH $GOFILE $GOPACKAGE xyz$GOPACKAGE/$GOFILE/123
+
+package p