...

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

Documentation: cmd/go/testdata/script

     1# Tests golang.org/issue/14944
     2
     3[!cgo] skip
     4
     5go 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 --
     9package main
    10
    11/*
    12#include <limits.h>
    13*/
    14import "C"
    15
    16func main() {
    17        println(C.INT_MAX)
    18}

View as plain text