func (p *gcParser) next() {
p.tok = p.scanner.Scan()
switch p.tok {
- case scanner.Ident, scanner.Int, scanner.String:
+ case scanner.Ident, scanner.Int, scanner.String, 'ยท':
p.lit = p.scanner.TokenText()
default:
p.lit = ""
}
func TestGcImport(t *testing.T) {
- // Dies trying to read crypto/md5, which contains
- // const init1 = 0x...
- // The importer believes init1 should be a function for some reason.
- // golang.org/issue/3682.
- t.Logf("broken; skipping")
- return
-
// On cross-compile builds, the path will not exist.
// Need to use GOHOSTOS, which is not available.
if _, err := os.Stat(gcPath); err != nil {