aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_dash_n_cgo.txt
blob: 3f49ef6f9ea80cba4e87b6c90e9e5541b1ddc88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Tests golang.org/issue/14944

[!cgo] skip

go build -n foo.go
! stderr 'os.Stat .* no such file or directory' # there shouldn't be a stat of the archive file

-- foo.go --
package main

/*
#include <limits.h>
*/
import "C"

func main() {
        println(C.INT_MAX)
}