...

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

Documentation: cmd/go/testdata/script

     1[!cgo] skip
     2
     3# Test that nothing is prepended to $WORK path prefix.
     4# See issue golang.org/issue/37012.
     5go build -n
     6! stderr '[/\\]\$WORK'
     7stderr '[ =]\$WORK'
     8
     9-- go.mod --
    10module m
    11
    12go 1.16
    13-- main.go --
    14package main
    15
    16import "C"
    17
    18var _ C.int

View as plain text