Text file src/cmd/go/testdata/script/build_gcflags_order.txt
1 # Tests golang.org/issue/47682 2 # Flags specified with -gcflags should appear after other flags generated by cmd/go. 3 4 cd m 5 go build -n -gcflags=-lang=go1.17 6 stderr ' -lang=go1.16.* -lang=go1.17' 7 8 -- m/go.mod -- 9 module example.com 10 11 go 1.16 12 13 -- m/main.go -- 14 package main 15 16 func main() { 17 var s = []int{1, 2, 3} 18 var pa = (*[2]int)(s[1:]) 19 println(pa[1]) 20 } 21