go/src/cmd/compile/internal/syntax/error_test.go

const testdata

var print

type position

func (pos position) String() string {}

func sortedPositions(m map[position]string) []position {}

// declaredErrors returns a map of source positions to error
// patterns, extracted from error comments in the given file.
// Error comments in the form of line comments use col = 0
// in their position.
func declaredErrors(t *testing.T, filename string) map[position]string {}

func testSyntaxErrors(t *testing.T, filename string) {}

func TestSyntaxErrors(t *testing.T) {}