aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_n_cgo.txt
blob: 7aa77aea42ad3b8bbcd3046845ffcd37a021163e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[!cgo] skip

# Test that nothing is prepended to $WORK path prefix.
# See issue golang.org/issue/37012.
go build -n
! stderr '[/\\]\$WORK'

-- go.mod --
module m

go 1.16
-- main.go --
package main

import "C"

var _ C.int