aboutsummaryrefslogtreecommitdiff
path: root/test/nul1.go
AgeCommit message (Collapse)Author
2016-10-25cmd/compile/internal/gc: enable new parser by defaultMatthew Dempsky
Change-Id: I3c784986755cfbbe1b8eb8da4d64227bd109a3b0 Reviewed-on: https://go-review.googlesource.com/27203 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
2016-08-19cmd/compile/internal/syntax: match old parser errors and line numbersMatthew Dempsky
This makes a bunch of changes to package syntax to tweak line numbers for AST nodes. For example, short variable declaration statements are now associated with the location of the ":=" token, and function calls are associated with the location of the final ")" token. These help satisfy many unit tests that assume the old parser's behavior. Because many of these changes are questionable, they're guarded behind a new "gcCompat" const to make them easy to identify and revisit in the future. A handful of remaining tests are too difficult to make behave identically. These have been updated to execute with -newparser=0 and comments explaining why they need to be fixed. all.bash now passes with both the old and new parsers. Change-Id: Iab834b71ca8698d39269f261eb5c92a0d55a3bf4 Reviewed-on: https://go-review.googlesource.com/27199 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
2012-11-08test: run some more tests by defaultIan Lance Taylor
R=golang-dev, remyoudompheng, iant, rsc CC=golang-dev https://golang.org/cl/6833043
2012-09-23test: expand run.go's errorcheck, make clear which bugs runRuss Cox
Today, if run.go doesn't understand a test header line it just ignores the test, making it too easy to write or edit tests that are not actually being run. - expand errorcheck to accept flags, so that bounds.go and escape*.go can run. - create a whitelist of skippable tests in run.go; skipping others is an error. - mark all skipped tests at top of file. Update #4139. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6549054
2011-08-16errchk: allow multiple patternsRuss Cox
// ERROR "pattern1" "pattern2" means that there has to be one or more lines matching pattern1 and then excluding those, there have to be one or more lines matching pattern2. So if you expect two different error messages from a particular line, writing two separate patterns checks that both errors are produced. Also, errchk now flags lines that produce more errors than expected. Before, as long as at least one error matched the pattern, all the others were ignored. Revise tests to expect or silence these additional errors. R=lvd, r, iant CC=golang-dev https://golang.org/cl/4869044
2010-12-15remove naclRuss Cox
The recent linker changes broke NaCl support a month ago, and there are no known users of it. The NaCl code can always be recovered from the repository history. R=adg, r CC=golang-dev https://golang.org/cl/3671042
2010-09-09test: Match gccgo error messages.Ian Lance Taylor
tmp.go:4:20: error: invalid NUL byte tmp.go:6:24: error: invalid NUL byte tmp.go:8:15: error: invalid NUL byte tmp.go:10:21: error: invalid NUL byte tmp.go:12:22: error: invalid NUL byte tmp.go:14:21: error: invalid UTF-8 encoding tmp.go:14:22: error: invalid UTF-8 encoding tmp.go:16:25: error: invalid UTF-8 encoding tmp.go:18:15: error: invalid UTF-8 encoding tmp.go:18:16: error: invalid UTF-8 encoding tmp.go:20:21: error: invalid UTF-8 encoding tmp.go:20:22: error: invalid NUL byte tmp.go:20:23: error: invalid NUL byte tmp.go:23:6: error: invalid UTF-8 encoding tmp.go:23:7: error: invalid UTF-8 encoding tmp.go:25:22: error: invalid UTF-8 encoding R=rsc CC=golang-dev https://golang.org/cl/2151046
2010-09-04test: remove semiocolons.Rob Pike
The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev https://golang.org/cl/2157041
2010-07-21arm: fix build2, tweak test/nul1.go arm exclusionKai Backman
R=rsc CC=golang-dev https://golang.org/cl/1866044
2010-07-20fix buildKai Backman
R=rsc CC=golang-dev https://golang.org/cl/1742048
2010-07-20more soft float support. passes several basic testsKai Backman
but with less precision than hardware counterparts. fixed a number of tests to output BUG when they failed. changed the runner to distinghuish between output and output containing ^BUG R=rsc CC=dho, golang-dev https://golang.org/cl/1778041
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox
Enable package tests for Native Client build. R=r CC=golang-dev https://golang.org/cl/957042
2010-02-21test: rename nul.go to nul1.goRuss Cox
nul is a reserved file name in Windows R=r CC=golang-dev https://golang.org/cl/216068