...

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

Documentation: cmd/go/testdata/script

     1# .a files should use slash-separated paths even on windows
     2# This is important for reproducing native builds with cross-compiled builds.
     3go build -o x.a text/template
     4! grep 'GOROOT\\' x.a
     5! grep 'text\\template' x.a
     6! grep 'c:\\' x.a
     7
     8# executables should use slash-separated paths even on windows
     9# This is important for reproducing native builds with cross-compiled builds.
    10go build -o hello.exe hello.go
    11! grep 'GOROOT\\' hello.exe
    12! grep '\\runtime' hello.exe
    13! grep 'runtime\\' hello.exe
    14! grep 'gofile..[A-Za-z]:\\' hello.exe
    15
    16-- hello.go --
    17package main
    18func main() { println("hello") }

View as plain text