...

Text file src/cmd/go/testdata/script/test_compile_tempfile.txt

Documentation: cmd/go/testdata/script

     1[short] skip
     2
     3# Ensure that the target of 'go build -o' can be an existing, empty file so that
     4# its name can be reserved using os.CreateTemp or the 'mktemp` command.
     5
     6go build -o empty-file$GOEXE main.go
     7
     8-- main.go --
     9package main
    10func main() {}
    11-- empty-file$GOEXE --

View as plain text