"testing"
)
+// importablePackages is a list of packages that we verify that we can
+// import. This should be all standard library packages in all relevant
+// versions of gccgo. Note that since gccgo follows a different release
+// cycle, and since different systems have different versions installed,
+// we can't use the last-two-versions rule of the gc toolchain.
var importablePackages = [...]string{
"archive/tar",
"archive/zip",
"encoding/binary",
"encoding/csv",
"encoding/gob",
- "encoding",
+ // "encoding", // Added in GCC 4.9.
"encoding/hex",
"encoding/json",
"encoding/pem",
"go/ast",
"go/build",
"go/doc",
- "go/format",
+ // "go/format", // Added in GCC 4.8.
"go/parser",
"go/printer",
"go/scanner",
"html",
"html/template",
"image/color",
- "image/color/palette",
+ // "image/color/palette", // Added in GCC 4.9.
"image/draw",
"image/gif",
"image",
"mime/multipart",
"net",
"net/http/cgi",
- "net/http/cookiejar",
+ // "net/http/cookiejar", // Added in GCC 4.8.
"net/http/fcgi",
"net/http",
"net/http/httptest",