aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/list_export_e.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/list_export_e.txt')
-rw-r--r--src/cmd/go/testdata/script/list_export_e.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/list_export_e.txt b/src/cmd/go/testdata/script/list_export_e.txt
new file mode 100644
index 0000000000..f6992e221d
--- /dev/null
+++ b/src/cmd/go/testdata/script/list_export_e.txt
@@ -0,0 +1,19 @@
+go list -e -export ./...
+! stderr '.'
+go list -e -export -json ...
+
+-- go.mod --
+module example.com
+-- p1/p1.go --
+package p1
+
+const Name = "p1"
+-- p2/main.go --
+package main
+
+import "fmt"
+import "example.com/p1"
+
+func main() {
+ fmt.Println(p1.Name == 5)
+} \ No newline at end of file