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

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

View as plain text