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

     1  # It's absurd, but builds with -compiler=gccgo used to fail to build module m.
     2  # golang.org/issue/34358
     3  
     4  env GO111MODULE=off
     5  
     6  [short] skip
     7  [cross] skip # gccgo can't necessarily cross-compile
     8  
     9  cd m
    10  go build
    11  exists m$GOEXE
    12  rm m$GOEXE
    13  [exec:gccgo] go build -compiler=gccgo
    14  [exec:gccgo] exists m$GOEXE
    15  
    16  -- m/go.mod --
    17  module m
    18  -- m/main.go --
    19  package main
    20  func main() {}
    21  

View as plain text