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

     1  # Tests golang.org/issue/14944
     2  
     3  [!cgo] skip
     4  
     5  go build -n foo.go
     6  ! stderr 'os.Stat .* no such file or directory' # there shouldn't be a stat of the archive file
     7  
     8  -- foo.go --
     9  package main
    10  
    11  /*
    12  #include <limits.h>
    13  */
    14  import "C"
    15  
    16  func main() {
    17          println(C.INT_MAX)
    18  }

View as plain text