diff options
Diffstat (limited to 'libgo/go/cmd/go/testdata/script/build_multi_main.txt')
-rw-r--r-- | libgo/go/cmd/go/testdata/script/build_multi_main.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/testdata/script/build_multi_main.txt b/libgo/go/cmd/go/testdata/script/build_multi_main.txt index 1d4926d9790..8afd8b8a2e1 100644 --- a/libgo/go/cmd/go/testdata/script/build_multi_main.txt +++ b/libgo/go/cmd/go/testdata/script/build_multi_main.txt @@ -10,6 +10,11 @@ stderr 'no main packages' ! go build ./cmd/c1 stderr 'already exists and is a directory' +# Verify build -o output correctly local packages +mkdir $WORK/local +go build -o $WORK/local ./exec.go +exists $WORK/local/exec$GOEXE + -- go.mod -- module exmod @@ -29,5 +34,10 @@ package pkg1 -- pkg2/pkg2.go -- package pkg2 +-- exec.go -- +package main + +func main() {} + -- c1$GOEXE/keep.txt -- Create c1 directory. |