summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/script/test_compile_tempfile.txt
blob: 912410814f47421cfd7c73abe63250306fd43d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
[short] skip

# Ensure that the target of 'go build -o' can be an existing, empty file so that
# its name can be reserved using ioutil.TempFile or the 'mktemp` command.

go build -o empty-file$GOEXE main.go

-- main.go --
package main
func main() {}
-- empty-file$GOEXE --