summaryrefslogtreecommitdiff
path: root/test/sinit.go
Commit message (Collapse)AuthorAgeFilesLines
* test: move linkx and sinit to run.goJosh Bleecher Snyder2014-11-061-17/+17
| | | | | | | | | | | | | | | | | The remaining run-only tests will be migrated to run.go in another CL. This CL will break the build due to issues 8746 and 8806. Update issue 4139 Update issue 8746 Update issue 8806 LGTM=rsc R=rsc, bradfitz, iant CC=golang-codereviews https://codereview.appspot.com/144630044 Committer: Russ Cox <rsc@golang.org>
* test: comment out failing cases from sinit.goIan Lance Taylor2014-11-041-14/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One failing case this removes is: var bytes = []byte("hello, world") var copy_bytes = bytes We could handle this in the compiler, but it requires special case for a variable that is initialized to the value of a variable that is initialized to a string literal converted to []byte. This seems an unlikely case--it never occurs in the standrd library--and it seems unnecessary to write the code to handle it. If we do want to support this case, one approach is https://codereview.appspot.com/171840043. The other failing cases are of the form var bx bool var copy_bx = bx The compiler used to initialize copy_bx to false. However, that led to issue 7665, since bx may be initialized in non-Go code. The compiler no longer assumes that bx must be false, so copy_bx can not be statically initialized. We can fix these with https://codereview.appspot.com/169040043 if we also pass -complete to the compiler as part of this test. This is OK but it's too late in the release cycle. Fixes issue 8746. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/165400043
* cmd/gc: do not generate code for var _ = ... unless necessaryRuss Cox2012-12-301-0/+10
| | | | | | | | Fixes issue 2443. R=ken2 CC=golang-dev https://codereview.appspot.com/6997048
* test: expand run.go's errorcheck, make clear which bugs runRuss Cox2012-09-231-0/+3
| | | | | | | | | | | | | | | | 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 issue 4139. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/6549054
* test/[n-z]*.go: add documentationRob Pike2012-02-241-0/+3
| | | | | | R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5700056
* gc: make static initialization more staticRuss Cox2011-08-311-32/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | Does as much as possible in data layout instead of during the init function. Handles var x = y; var y = z as a special case too, because it is so prevalent in package unicode (var Greek = _Greek; var _Greek = []...). Introduces InitPlan description of initialized data so that it can be traversed multiple times (for example, in the copy handler). Cuts package unicode's init function size by 8x. All that remains there is map initialization, which is on the chopping block too. Fixes sinit.go test case. Aggregate DATA instructions at end of object file. Checkpoint. More to come. R=ken2 CC=golang-dev http://codereview.appspot.com/4969051
* test: remove semiocolons.Rob Pike2010-09-041-4/+4
| | | | | | | | The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev http://codereview.appspot.com/2157041
* test: test of static initialization (fails)Russ Cox2010-05-031-0/+100
R=ken2 CC=golang-dev http://codereview.appspot.com/1090041