libgo: update to Go 1.11
[official-gcc.git] / libgo / go / cmd / go / testdata / script / build_GOTMPDIR.txt
blob4c387afbbabd7d9205181bb6295fbed34e7158a0
1 # Build should use GOTMPDIR if set.
2 env GOTMPDIR=$WORK/my-favorite-tmpdir
3 env GOCACHE=off
4 mkdir $GOTMPDIR
5 go build -work hello.go
6 stderr ^WORK=.*my-favorite-tmpdir
8 -- hello.go --
9 package main
10 func main() { println("hello") }