summaryrefslogtreecommitdiff
path: root/test/zerodivide.go
Commit message (Collapse)AuthorAgeFilesLines
* test: ensure all failing tests exit nonzero.Alan Donovan2013-02-121-0/+3
| | | | | | | | | | Previously merely printing an error would cause the golden file comparison (in 'bash run') to fail, but that is no longer the case with the new run.go driver. R=iant CC=golang-dev https://codereview.appspot.com/7310087
* test: [a-c]: add introductory comments to testsRob Pike2012-02-191-0/+2
| | | | | | | | | | | | Very few of the compiler regression tests include a comment saying waht they do. Many are obvious, some are anything but. I've started with a-c in the top directory. More will follow once we agree on the approach, correctness, and thoroughness here. zerodivide.go sneaked in too. R=rsc, r CC=golang-dev http://codereview.appspot.com/5656100
* test: use testlib (final 61)Russ Cox2012-02-161-1/+1
| | | | | | | | | | | X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5671080
* non-pkg: gofix -r error -force=errorRuss Cox2011-11-011-3/+3
| | | | | | R=golang-dev, iant, r, r CC=golang-dev http://codereview.appspot.com/5307066
* test: error-related fixesRuss Cox2011-10-271-5/+2
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5328051
* delete float, complex - code changesRuss Cox2011-01-191-85/+119
| | | | | | | | | | | also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev http://codereview.appspot.com/3991043
* remove naclRuss Cox2010-12-151-2/+1
| | | | | | | | | | | | 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 http://codereview.appspot.com/3671042
* test: Make gccgo believe that the variables can change.Ian Lance Taylor2010-09-111-0/+24
| | | | | | | | | | | | This test is supposed to test runtime behaviour. However, gccgo is smart enough to see that the variables are local to the package and that they never change. Add a function so that gccgo thinks that the variables can in fact vary, so that the test works at runtime as expected. R=rsc CC=golang-dev http://codereview.appspot.com/2178041
* fix buildKai Backman2010-07-301-4/+4
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/1913042
* arm: bugfixes (stack clobbering, indices)Kai Backman2010-07-301-0/+12
| | | | | | | | also changed zerodivide to output "BUG" R=rsc CC=golang-dev http://codereview.appspot.com/1871055
* more soft float support. passes several basic testsKai Backman2010-07-201-0/+5
| | | | | | | | | | | | 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 http://codereview.appspot.com/1778041
* test: add missing import for zerodivideChristopher Wedgwood2010-06-181-0/+1
| | | | | | | | R=rsc CC=golang-dev, r http://codereview.appspot.com/1706043 Committer: Russ Cox <rsc@golang.org>
* complex divide: match C99 implementationRuss Cox2010-06-181-6/+8
| | | | | | R=iant, ken2, r, r2, ken3 CC=golang-dev http://codereview.appspot.com/1686044
* runtime: correct fault for 16-bit divide on LeopardRuss Cox2010-06-141-8/+4
| | | | | | R=r CC=golang-dev http://codereview.appspot.com/1703041
* Add test for division by zero.Rob Pike2010-06-141-0/+168
It fails with 6g. Once 6g is fixed up I will extend the value tests. R=rsc, iant CC=golang-dev http://codereview.appspot.com/1677043