aboutsummaryrefslogtreecommitdiff
path: root/test/bugs
AgeCommit message (Collapse)Author
2016-10-25test: delete bugs directoryJosh Bleecher Snyder
It appears to be a vestigial holding ground for bugs. But we have an issue tracker, and #1909 is there and open. Change-Id: I912ff222a24c51fab483be0c67dad534f5a84488 Reviewed-on: https://go-review.googlesource.com/31859 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2014-12-22test: migrate remaining tests to run.goJosh Bleecher Snyder
* bug248, bug345, bug369, and bug429 were ported from bash commands to run scripts. bug369 remains disabled. * bug395 is a test for issue 1909, which is still open. It is marked as skip now and will be usable with compile with run.go when issue 1909 is fixed. Fixes #4139 Updates #1909 Change-Id: Ibb5fbfb5cf72ddc285829245318eeacd3fb5a636 Reviewed-on: https://go-review.googlesource.com/1774 Reviewed-by: Russ Cox <rsc@golang.org>
2012-12-22cmd/gc: fix wrong interaction between inlining and embedded builtins.Rémy Oudompheng
The patch makes the compile user an ordinary package-local symbol for the name of embedded fields of builtin type. This is incompatible with the fix delivered for issue 2687 (revision 3c060add43fb) but fixes it in a different way, because the explicit symbol on the field makes the typechecker able to find it in lookdot. Fixes #3552. R=lvd, rsc, daniel.morsing CC=golang-dev https://golang.org/cl/6866047
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
2012-09-01cmd/6g, cmd/8g: eliminate short integer arithmetic when possible.Rémy Oudompheng
Fixes #3909. Fixes #3910. R=rsc, nigeltao CC=golang-dev https://golang.org/cl/6442114
2012-05-24exp/locale/collate: avoid 16-bit mathRuss Cox
There's no need for the 16-bit arithmetic here, and it tickles a long-standing compiler bug. Fix the exp code not to use 16-bit math and create an explicit test for the compiler bug. R=golang-dev, r CC=golang-dev https://golang.org/cl/6256048
2012-05-02cmd/gc: test for issue 3552Luuk van Dijk
R=rsc CC=golang-dev https://golang.org/cl/6128051
2012-03-07cmd/gc: do not confuse unexported methods of same nameRuss Cox
Fixes #3146. R=ken2 CC=golang-dev https://golang.org/cl/5756074
2012-02-27test: bug424: wrong embedded method calledRobert Griesemer
R=golang-dev, r CC=golang-dev https://golang.org/cl/5695083
2012-01-20gc: undo most of 'fix infinite recursion for embedded interfaces'Russ Cox
Preserve test. changeset: 11593:f1deaf35e1d1 user: Luuk van Dijk <lvd@golang.org> date: Tue Jan 17 10:00:57 2012 +0100 summary: gc: fix infinite recursion for embedded interfaces This is causing 'interface type loop' errors during compilation of a complex program. I don't understand what's happening well enough to boil it down to a simple test case, but undoing this change fixes the problem. The change being undone is fixing a corner case (uses of pointer to interface in an interface definition) that basically only comes up in erroneous Go programs. Let's not try to fix this again until after Go 1. Unfixes issue 1909. TBR=lvd CC=golang-dev https://golang.org/cl/5555063
2011-12-09gc: 0 expected bugsRuss Cox
Now that Luuk's qualified exporting code is in, fixing this bug is trivial. R=ken2 CC=golang-dev https://golang.org/cl/5479048
2011-09-14test: Add test for inheriting private method from anonymous field.Ian Lance Taylor
The spec says that all methods are inherited from an anonymous field. There is no exception for non-exported methods. This is related to issue 1536. R=rsc CC=golang-dev https://golang.org/cl/5012043
2011-05-24gc: relax assignability of method receiversAnthony Martin
The spec was adjusted in commit df410d6a4842 to allow the implicit assignment of strutures with unexported fields in method receivers. This change updates the compiler. Also moved bug322 into fixedbugs and updated golden.out to reflect the removal of the last known bug. Fixes #1402. R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/4526069
2011-04-21gc: correct handling of unexported method names in embedded interfacesRuss Cox
go/types: update for export data format change reflect: require package qualifiers to match during interface check runtime: require package qualifiers to match during interface check test: fixed bug324, adapt to be silent Fixes #1550. Issue 1536 remains open. R=gri, ken2, r CC=golang-dev https://golang.org/cl/4442071
2011-03-29test: adjust bug324 to expect run-time failure, not compile-time.Ian Lance Taylor
Failing at compile time requires that for each conversion between two interface types the compiler compare the sets of unexported methods to see if they come from different packages. Since this test will fail approximately never on real code, and since it can't catch all cases of the problem, I don't think it's worth testing in the compiler. This CL changes this test to look for a run-time panic rather than a compile-time error. R=gri, rsc1, iant2, rsc CC=golang-dev https://golang.org/cl/4332041
2011-03-29test: adjust bugs/bug322 to match current spec.Ian Lance Taylor
R=gri, rsc1 CC=golang-dev https://golang.org/cl/4328041
2011-02-24bug324.go: test case for issue 1550Robert Griesemer
Also: renamed fixedbugs/bug322.go to fixedbugs/bug323.go because we already have a bugs/bug322.go and bug322.dir. R=rsc CC=golang-dev https://golang.org/cl/4219044
2011-02-03issue 1402: added test caseRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/4079063
2010-12-13gc: align structs according to max alignment of fieldsRuss Cox
cc: same runtime: test cc alignment (required moving #define of offsetof to runtime.h) fix bug260 Fixes #482. Fixes #609. R=ken2, r CC=golang-dev https://golang.org/cl/3563042
2010-09-15fix buildRobert Griesemer
R=iant CC=golang-dev, ken2 https://golang.org/cl/2182043
2010-09-10test: Add test for //line (currently fails).Ian Lance Taylor
R=rsc CC=golang-dev https://golang.org/cl/2127045
2010-08-03gc: bug299, bug300Russ Cox
R=ken2 CC=golang-dev https://golang.org/cl/1731057
2010-07-29bug300: literal types must not be parenthesizedRobert Griesemer
( This CL is dependent on acceptance of https://golang.org/cl/1913041/show ) R=go-dev CC=golang-dev https://golang.org/cl/1860045
2010-07-29bug299: parenthesized receiver types/anonymous fields are illegalRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/1846051
2010-07-15gc: bug274Russ Cox
R=ken2 CC=golang-dev https://golang.org/cl/1742044
2010-07-15gc: fix handling of types inside function bodiesRuss Cox
Fixes #849. Fixes #920. R=ken2 CC=golang-dev https://golang.org/cl/1841042
2010-06-09bug286: test caseRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/1644042
2010-06-08gc: new typechecking rulesRuss Cox
* Code for assignment, conversions now mirrors spec. * Changed some snprint -> smprint. * Renamed runtime functions to separate interface conversions from type assertions: convT2I, assertI2T, etc. * Correct checking of \U sequences. Fixes #840. Fixes #830. Fixes #778. R=ken2 CC=golang-dev https://golang.org/cl/1303042
2010-06-08fix buildRuss Cox
R=gri CC=golang-dev https://golang.org/cl/1616041
2010-06-08bug284: make conversion legal, fix error patternsRuss Cox
R=gri CC=golang-dev https://golang.org/cl/1612041
2010-06-08bug285: delete invalid map assignmentRuss Cox
*T2 implements I2, but T2 does not. R=gri CC=golang-dev https://golang.org/cl/1613041
2010-06-03bug285: assignment compatible map keys must be acceptedRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/1473042
2010-06-02bug284: additional conversion test caseRobert Griesemer
R=r, iant CC=golang-dev https://golang.org/cl/1433042
2010-06-02bug284: test cases for new conversion rulesRobert Griesemer
R=rsc, r, iant CC=golang-dev https://golang.org/cl/1465041
2010-05-24gc: bug277 - new conversion syntaxRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/1220046
2010-05-24bug277: tests for conversion syntaxRobert Griesemer
- accepted by gccgo, gofmt - some not accepted by 6g - spec revision forthcoming R=rsc CC=golang-dev https://golang.org/cl/1279041
2010-05-20clean up bug 275Ken Thompson
R=rsc CC=golang-dev https://golang.org/cl/1224044
2010-05-19bug275: cannot apply real() to a complex array elementRobert Griesemer
R=r, ken2 CC=golang-dev https://golang.org/cl/1260041
2010-05-13bug274: test case for issue 777Robert Griesemer
R=r, iant CC=golang-dev https://golang.org/cl/1195042
2010-05-03gc: bug264Russ Cox
Fixes #692. R=ken2 CC=golang-dev https://golang.org/cl/1092041
2010-05-03gc: bug267Russ Cox
R=ken2 CC=golang-dev https://golang.org/cl/1067042
2010-04-276g bug: no need for parens around array index expressionRobert Griesemer
where index is a composite literal R=rsc CC=golang-dev https://golang.org/cl/961044
2010-03-29gc: bug265Russ Cox
Fixes #700. R=ken2 CC=golang-dev https://golang.org/cl/839041
2010-03-29bug265: test case for issue 700Robert Griesemer
( http://code.google.com/p/go/issues/detail?id=700 ) R=r CC=golang-dev https://golang.org/cl/827042
2010-03-25bug264 didn't report BUG correctly, caused "fail" from test/runRob Pike
R=rsc, gri CC=golang-dev https://golang.org/cl/762041
2010-03-25bug264: test case for issue 692Robert Griesemer
R=r CC=golang-dev https://golang.org/cl/715042
2010-03-05Generate same output on all architectures.Ian Lance Taylor
Passing an argument to bug260 will indicate which alignments are wrong. R=r CC=golang-dev https://golang.org/cl/231042
2010-03-04add a test that structures pack. 6g fails.Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/237041
2010-02-18gc: recursive interface embeddingRuss Cox
Fixes #287. R=ken2 CC=golang-dev https://golang.org/cl/215048